Lines Matching refs:from
189 s_append(string *to, char *from) in s_append() argument
193 if (from == NULL) in s_append()
195 for (; *from; from++) in s_append()
196 s_putc(to, (int)(unsigned int)*from); in s_append()
282 s_tok(string *from, char *split) in s_tok() argument
284 char *splitend = strpbrk(from->ptr, split); in s_tok()
288 for (; from->ptr < splitend; ) { in s_tok()
289 s_putc(to, (int)(unsigned int)*from->ptr); in s_tok()
290 from->ptr++; in s_tok()
295 from->ptr += strspn(from->ptr, split); in s_tok()
299 else if (from->ptr[0]) { in s_tok()
300 string *to = s_clone(from); in s_tok()
301 while (*from->ptr) in s_tok()
302 from->ptr++; in s_tok()
388 s_parse(string *from, string *to) in s_parse() argument
390 while (isspace(*from->ptr)) in s_parse()
391 from->ptr++; in s_parse()
392 if (*from->ptr == '\0') in s_parse()
396 if (*from->ptr == '\'') { in s_parse()
397 from->ptr++; in s_parse()
398 for (; *from->ptr != '\'' && *from->ptr != '\0'; from->ptr++) in s_parse()
399 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()
400 if (*from->ptr == '\'') in s_parse()
401 from->ptr++; in s_parse()
402 } else if (*from->ptr == '"') { in s_parse()
403 from->ptr++; in s_parse()
404 for (; *from->ptr != '"' && *from->ptr != '\0'; from->ptr++) in s_parse()
405 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()
406 if (*from->ptr == '"') in s_parse()
407 from->ptr++; in s_parse()
409 for (; !isspace(*from->ptr) && *from->ptr != '\0'; from->ptr++) in s_parse()
410 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()