Lines Matching refs:c

361 static bool escape_passthrough(unsigned char c, char **dst, char *end)  in escape_passthrough()  argument
366 *out = c; in escape_passthrough()
371 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument
376 switch (c) { in escape_space()
407 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument
412 switch (c) { in escape_special()
440 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument
444 if (c) in escape_null()
458 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument
466 *out = ((c >> 6) & 0x07) + '0'; in escape_octal()
469 *out = ((c >> 3) & 0x07) + '0'; in escape_octal()
472 *out = ((c >> 0) & 0x07) + '0'; in escape_octal()
479 static bool escape_hex(unsigned char c, char **dst, char *end) in escape_hex() argument
490 *out = hex_asc_hi(c); in escape_hex()
493 *out = hex_asc_lo(c); in escape_hex()
586 unsigned char c = *src++; in string_escape_mem() local
587 bool in_dict = is_dict && strchr(only, c); in string_escape_mem()
609 escape_passthrough(c, &p, end)) in string_escape_mem()
612 if (!(is_append && in_dict) && isascii(c) && isprint(c) && in string_escape_mem()
613 flags & ESCAPE_NAP && escape_passthrough(c, &p, end)) in string_escape_mem()
616 if (!(is_append && in_dict) && isprint(c) && in string_escape_mem()
617 flags & ESCAPE_NP && escape_passthrough(c, &p, end)) in string_escape_mem()
620 if (!(is_append && in_dict) && isascii(c) && 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()