diff src/lib/strescape.h @ 22636:96e51a11c0aa

lib: Implement t_strsplit_tabescaped_inplace() This is a more efficient version of t_strsplit_tabescaped(), which modifies the input string instead of duplicating it.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 04 Nov 2017 01:39:38 +0200
parents 9af7c7196540
children
line wrap: on
line diff
--- a/src/lib/strescape.h	Sat Nov 04 01:37:19 2017 +0200
+++ b/src/lib/strescape.h	Sat Nov 04 01:39:38 2017 +0200
@@ -28,5 +28,8 @@
 
 char **p_strsplit_tabescaped(pool_t pool, const char *str);
 const char *const *t_strsplit_tabescaped(const char *str);
+/* Same as t_strsplit_tabescaped(), but the input string is modified and the
+   returned pointers inside the array point to the original string. */
+const char *const *t_strsplit_tabescaped_inplace(char *str);
 
 #endif