Lines Matching refs:utf8p
1124 utf8_encodestr(const u_int16_t * ucsp, size_t ucslen, u_int8_t * utf8p,
1139 bufstart = utf8p;
1161 if (utf8p >= bufend) {
1165 *utf8p++ = ucs_ch;
1168 if ((utf8p + 1) >= bufend) {
1172 *utf8p++ = 0xc0 | (ucs_ch >> 6);
1173 *utf8p++ = 0x80 | (0x3f & ucs_ch);
1186 if ((utf8p + 3) >= bufend) {
1192 *utf8p++ = 0xf0 | (pair >> 18);
1193 *utf8p++ = 0x80 | (0x3f & (pair >> 12));
1194 *utf8p++ = 0x80 | (0x3f & (pair >> 6));
1195 *utf8p++ = 0x80 | (0x3f & pair);
1199 if ((utf8p + 2) >= bufend) {
1203 *utf8p++ = 0xe0 | (ucs_ch >> 12);
1204 *utf8p++ = 0x80 | (0x3f & (ucs_ch >> 6));
1205 *utf8p++ = 0x80 | (0x3f & ucs_ch);
1209 *utf8len = utf8p - bufstart;
1211 *utf8p++ = '\0';
1236 utf8_decodestr(const u_int8_t* utf8p, size_t utf8len, u_int16_t* ucsp,
1253 utf8start = utf8p;
1256 byte = *utf8p++;
1275 byte = *utf8p++; /* 2nd byte */
1286 byte = *utf8p++; /* 2nd byte */
1290 byte = *utf8p++; /* 3rd byte */
1307 byte = *utf8p++; /* 2nd byte */
1311 byte = *utf8p++; /* 3rd byte */
1315 byte = *utf8p++; /* 4th byte */
1352 utf8lastpass = utf8p;