Lines Matching refs:p
30 const unsigned char *p; in UTF8_getc() local
35 p = str; in UTF8_getc()
38 if ((*p & 0x80) == 0) { in UTF8_getc()
39 value = *p++ & 0x7f; in UTF8_getc()
41 } else if ((*p & 0xe0) == 0xc0) { in UTF8_getc()
44 if ((p[1] & 0xc0) != 0x80) in UTF8_getc()
46 value = (*p++ & 0x1f) << 6; in UTF8_getc()
47 value |= *p++ & 0x3f; in UTF8_getc()
51 } else if ((*p & 0xf0) == 0xe0) { in UTF8_getc()
54 if (((p[1] & 0xc0) != 0x80) in UTF8_getc()
55 || ((p[2] & 0xc0) != 0x80)) in UTF8_getc()
57 value = (*p++ & 0xf) << 12; in UTF8_getc()
58 value |= (*p++ & 0x3f) << 6; in UTF8_getc()
59 value |= *p++ & 0x3f; in UTF8_getc()
65 } else if ((*p & 0xf8) == 0xf0) { in UTF8_getc()
68 if (((p[1] & 0xc0) != 0x80) in UTF8_getc()
69 || ((p[2] & 0xc0) != 0x80) in UTF8_getc()
70 || ((p[3] & 0xc0) != 0x80)) in UTF8_getc()
72 value = ((unsigned long)(*p++ & 0x7)) << 18; in UTF8_getc()
73 value |= (*p++ & 0x3f) << 12; in UTF8_getc()
74 value |= (*p++ & 0x3f) << 6; in UTF8_getc()
75 value |= *p++ & 0x3f; in UTF8_getc()