void attribute((unused)) *u) {
}
+/* TODO: handle combining characters attached to delimiters in some
+ * sane way (might include reporting an error) */
+
char **split(const char *p,
int *np,
unsigned flags,
size_t l;
int qc;
- if(!error_handler) error_handler = no_error_handler;
+ if(!error_handler)
+ error_handler = no_error_handler;
vector_init(&v);
while(*p && !(*p == '#' && (flags & SPLIT_COMMENTS))) {
if(space(*p)) {
return v.vec;
}
+/* TODO handle initial combining characters sanely */
+
const char *quoteutf8(const char *s) {
size_t len = 3 + strlen(s);
const char *t;