string-array: New function string_array_parse().
[pspp] / src / libpspp / string-array.h
index 36ad7383963d8ca7d23a80b8a820f4ecb8969de9..ecad3326b6a73f3a02ff99101d3462e5ce3936fb 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <stdbool.h>
 #include <stddef.h>
+#include "libpspp/str.h"
 
 /* An unordered array of strings.
 
@@ -61,6 +62,8 @@ void string_array_shrink (struct string_array *);
 
 void string_array_sort (struct string_array *);
 
+void string_array_parse (struct string_array *, struct substring string,
+                         struct substring delimiters);
 char *string_array_join (const struct string_array *, const char *separator);
 
 /* Macros for conveniently iterating through a string_array, e.g. to print all