Lines Matching refs:from
187 s_append(string *to, char *from) in s_append() argument
191 if (from == NULL) in s_append()
193 for (; *from; from++) in s_append()
194 s_putc(to, (int)(unsigned int)*from); in s_append()
280 s_tok(string *from, char *split) in s_tok() argument
282 char *splitend = strpbrk(from->ptr, split); in s_tok()
286 for (; from->ptr < splitend; ) { in s_tok()
287 s_putc(to, (int)(unsigned int)*from->ptr); in s_tok()
288 from->ptr++; in s_tok()
293 from->ptr += strspn(from->ptr, split); in s_tok()
297 else if (from->ptr[0]) { in s_tok()
298 string *to = s_clone(from); in s_tok()
299 while (*from->ptr) in s_tok()
300 from->ptr++; in s_tok()
386 s_parse(string *from, string *to) in s_parse() argument
388 while (isspace(*from->ptr)) in s_parse()
389 from->ptr++; in s_parse()
390 if (*from->ptr == '\0') in s_parse()
394 if (*from->ptr == '\'') { in s_parse()
395 from->ptr++; in s_parse()
396 for (; *from->ptr != '\'' && *from->ptr != '\0'; from->ptr++) in s_parse()
397 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()
398 if (*from->ptr == '\'') in s_parse()
399 from->ptr++; in s_parse()
400 } else if (*from->ptr == '"') { in s_parse()
401 from->ptr++; in s_parse()
402 for (; *from->ptr != '"' && *from->ptr != '\0'; from->ptr++) in s_parse()
403 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()
404 if (*from->ptr == '"') in s_parse()
405 from->ptr++; in s_parse()
407 for (; !isspace(*from->ptr) && *from->ptr != '\0'; from->ptr++) in s_parse()
408 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()