comparison 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
comparison
equal deleted inserted replaced
22635:82d8656bb3ad 22636:96e51a11c0aa
26 char *str_tabunescape(char *str); 26 char *str_tabunescape(char *str);
27 const char *t_str_tabunescape(const char *str); 27 const char *t_str_tabunescape(const char *str);
28 28
29 char **p_strsplit_tabescaped(pool_t pool, const char *str); 29 char **p_strsplit_tabescaped(pool_t pool, const char *str);
30 const char *const *t_strsplit_tabescaped(const char *str); 30 const char *const *t_strsplit_tabescaped(const char *str);
31 /* Same as t_strsplit_tabescaped(), but the input string is modified and the
32 returned pointers inside the array point to the original string. */
33 const char *const *t_strsplit_tabescaped_inplace(char *str);
31 34
32 #endif 35 #endif