Lines Matching refs:end
361 static bool escape_passthrough(unsigned char c, char **dst, char *end) in escape_passthrough() argument
365 if (out < end) in escape_passthrough()
371 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument
396 if (out < end) in escape_space()
399 if (out < end) in escape_space()
407 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument
429 if (out < end) in escape_special()
432 if (out < end) in escape_special()
440 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument
447 if (out < end) in escape_null()
450 if (out < end) in escape_null()
458 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument
462 if (out < end) in escape_octal()
465 if (out < end) in escape_octal()
468 if (out < end) in escape_octal()
471 if (out < end) in escape_octal()
479 static bool escape_hex(unsigned char c, char **dst, char *end) in escape_hex() argument
483 if (out < end) in escape_hex()
486 if (out < end) in escape_hex()
489 if (out < end) in escape_hex()
492 if (out < end) in escape_hex()
581 char *end = p + osz; in string_escape_mem() local
609 escape_passthrough(c, &p, end)) in string_escape_mem()
613 flags & ESCAPE_NAP && escape_passthrough(c, &p, end)) in string_escape_mem()
617 flags & ESCAPE_NP && escape_passthrough(c, &p, end)) in string_escape_mem()
621 flags & ESCAPE_NA && escape_passthrough(c, &p, end)) in string_escape_mem()
624 if (flags & ESCAPE_SPACE && escape_space(c, &p, end)) in string_escape_mem()
627 if (flags & ESCAPE_SPECIAL && escape_special(c, &p, end)) in string_escape_mem()
630 if (flags & ESCAPE_NULL && escape_null(c, &p, end)) in string_escape_mem()
634 if (flags & ESCAPE_OCTAL && escape_octal(c, &p, end)) in string_escape_mem()
637 if (flags & ESCAPE_HEX && escape_hex(c, &p, end)) in string_escape_mem()
640 escape_passthrough(c, &p, end); in string_escape_mem()
864 char *end; in strim() local
870 end = s + size - 1; in strim()
871 while (end >= s && isspace(*end)) in strim()
872 end--; in strim()
873 *(end + 1) = '\0'; in strim()