Lines Matching refs:c

297 static bool escape_passthrough(unsigned char c, char **dst, char *end)  in escape_passthrough()  argument
302 *out = c; in escape_passthrough()
307 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument
312 switch (c) { in escape_space()
343 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument
348 switch (c) { in escape_special()
373 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument
377 if (c) in escape_null()
391 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument
399 *out = ((c >> 6) & 0x07) + '0'; in escape_octal()
402 *out = ((c >> 3) & 0x07) + '0'; in escape_octal()
405 *out = ((c >> 0) & 0x07) + '0'; in escape_octal()
412 static bool escape_hex(unsigned char c, char **dst, char *end) in escape_hex() argument
423 *out = hex_asc_hi(c); in escape_hex()
426 *out = hex_asc_lo(c); in escape_hex()
495 unsigned char c = *src++; in string_escape_mem() local
508 if ((flags & ESCAPE_NP && isprint(c)) || in string_escape_mem()
509 (is_dict && !strchr(esc, c))) { in string_escape_mem()
512 if (flags & ESCAPE_SPACE && escape_space(c, &p, end)) in string_escape_mem()
515 if (flags & ESCAPE_SPECIAL && escape_special(c, &p, end)) in string_escape_mem()
518 if (flags & ESCAPE_NULL && escape_null(c, &p, end)) in string_escape_mem()
522 if (flags & ESCAPE_OCTAL && escape_octal(c, &p, end)) in string_escape_mem()
525 if (flags & ESCAPE_HEX && escape_hex(c, &p, end)) in string_escape_mem()
529 escape_passthrough(c, &p, end); in string_escape_mem()