summaryrefslogtreecommitdiff
path: root/src/core/wee-string.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-08-10 17:31:48 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-08-10 18:20:49 +0200
commitc46d7e44f1c688596084928d89a611fb2047ff13 (patch)
treecf45dff65d6ddd42688e9d0cd20f254d53b5bc08 /src/core/wee-string.h
parent49aacc853c2b7218bc2f87a95097cd9677fdf3e0 (diff)
downloadweechat-c46d7e44f1c688596084928d89a611fb2047ff13.zip
core: add support of shared strings in split of strings (add functions string_split_shared and string_free_split_shared)
Diffstat (limited to 'src/core/wee-string.h')
-rw-r--r--src/core/wee-string.h4
1 files changed, 4 insertions, 0 deletions
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);