#define DS_INITIALIZER {NULL, 0, 0}
/* Constructors, destructors. */
-void ds_init (struct string *, size_t);
+void ds_init (struct string *);
void ds_init_substring (struct string *,
const struct string *src, size_t start, size_t cnt);
void ds_create (struct string *, const char *);
void ds_trim_spaces (struct string *);
bool ds_chomp (struct string *, char);
bool ds_separate (const struct string *src, struct string *token,
- const char *delimiters, int *save_idx);
+ const char *delimiters, size_t *save_idx);
+bool ds_tokenize (const struct string *src, struct string *token,
+ const char *delimiters, size_t *save_idx);
/* Inspectors. */
bool ds_is_empty (const struct string *);
}
+char * ds_append_uninit(struct string *st, size_t incr);
+
#endif /* str_h */