Lines Matching refs:str_p
321 sldns_parse_escape(uint8_t *ch_p, const char** str_p) in sldns_parse_escape() argument
325 if ((*str_p)[0] && isdigit((unsigned char)(*str_p)[0]) && in sldns_parse_escape()
326 (*str_p)[1] && isdigit((unsigned char)(*str_p)[1]) && in sldns_parse_escape()
327 (*str_p)[2] && isdigit((unsigned char)(*str_p)[2])) { in sldns_parse_escape()
329 val = (uint16_t)(((*str_p)[0] - '0') * 100 + in sldns_parse_escape()
330 ((*str_p)[1] - '0') * 10 + in sldns_parse_escape()
331 ((*str_p)[2] - '0')); in sldns_parse_escape()
337 *str_p += 3; in sldns_parse_escape()
340 } else if ((*str_p)[0] && !isdigit((unsigned char)(*str_p)[0])) { in sldns_parse_escape()
342 *ch_p = (uint8_t)*(*str_p)++; in sldns_parse_escape()
346 *str_p = NULL; in sldns_parse_escape()
352 sldns_parse_char(uint8_t *ch_p, const char** str_p) in sldns_parse_char() argument
354 switch (**str_p) { in sldns_parse_char()
358 case '\\': *str_p += 1; in sldns_parse_char()
359 return sldns_parse_escape(ch_p, str_p); in sldns_parse_char()
361 default: *ch_p = (uint8_t)*(*str_p)++; in sldns_parse_char()