From c46d7e44f1c688596084928d89a611fb2047ff13 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 10 Aug 2013 17:31:48 +0200 Subject: core: add support of shared strings in split of strings (add functions string_split_shared and string_free_split_shared) --- src/core/wee-string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/wee-string.h') diff --git a/src/core/wee-string.h b/src/core/wee-string.h index c3cf06ca7..d79ae8fac 100644 --- a/src/core/wee-string.h +++ b/src/core/wee-string.h @@ -59,8 +59,12 @@ extern int string_has_highlight_regex_compiled (const char *string, extern int string_has_highlight_regex (const char *string, const char *regex); extern char **string_split (const char *string, const char *separators, int keep_eol, int num_items_max, int *num_items); +extern char **string_split_shared (const char *string, const char *separators, + int keep_eol, int num_items_max, + int *num_items); extern char **string_split_shell (const char *string); extern void string_free_split (char **split_string); +extern void string_free_split_shared (char **split_string); extern char *string_build_with_split_string (const char **split_string, const char *separator); extern char **string_split_command (const char *command, char separator); -- cgit v1.2.3