Lines Matching refs:p

34 nxt_utf8_encode(u_char *p, uint32_t u)  in nxt_utf8_encode()  argument
37 *p++ = (u_char) (u & 0xFF); in nxt_utf8_encode()
38 return p; in nxt_utf8_encode()
42 *p++ = (u_char) (( u >> 6) | 0xC0); in nxt_utf8_encode()
43 *p++ = (u_char) (( u & 0x3F) | 0x80); in nxt_utf8_encode()
44 return p; in nxt_utf8_encode()
48 *p++ = (u_char) ( (u >> 12) | 0xE0); in nxt_utf8_encode()
49 *p++ = (u_char) (((u >> 6) & 0x3F) | 0x80); in nxt_utf8_encode()
50 *p++ = (u_char) (( u & 0x3F) | 0x80); in nxt_utf8_encode()
51 return p; in nxt_utf8_encode()
55 *p++ = (u_char) ( (u >> 18) | 0xF0); in nxt_utf8_encode()
56 *p++ = (u_char) (((u >> 12) & 0x3F) | 0x80); in nxt_utf8_encode()
57 *p++ = (u_char) (((u >> 6) & 0x3F) | 0x80); in nxt_utf8_encode()
58 *p++ = (u_char) (( u & 0x3F) | 0x80); in nxt_utf8_encode()
59 return p; in nxt_utf8_encode()
100 const u_char *p; in nxt_utf8_decode2() local
102 p = *start; in nxt_utf8_decode2()
103 u = (uint32_t) *p; in nxt_utf8_decode2()
140 p++; in nxt_utf8_decode2()
142 if (nxt_fast_path(p + n <= end)) { in nxt_utf8_decode2()
145 c = *p++; in nxt_utf8_decode2()
162 *start = p; in nxt_utf8_decode2()
238 nxt_utf8_length(const u_char *p, size_t len) in nxt_utf8_length() argument
245 end = p + len; in nxt_utf8_length()
247 while (p < end) { in nxt_utf8_length()
248 if (nxt_slow_path(nxt_utf8_decode(&p, end) == 0xFFFFFFFF)) { in nxt_utf8_length()
260 nxt_utf8_is_valid(const u_char *p, size_t len) in nxt_utf8_is_valid() argument
264 end = p + len; in nxt_utf8_is_valid()
266 while (p < end) { in nxt_utf8_is_valid()
267 if (nxt_slow_path(nxt_utf8_decode(&p, end) == 0xFFFFFFFF)) { in nxt_utf8_is_valid()