Lines Matching refs:utf
1992 * running with UTF-8 encoding.
2001 * Clean macros, not dependent of an ASCII context, expect UTF-8 encoding
2004 * in UTF-8 mode. It also pop-up unfinished entities on the fly.
7251 * So we are using non-UTF-8 buffers
7272 * Just encode the value in UTF-8
10541 * UTF-16 encoding stwich has already taken place at this stage,
10545 ((!xmlStrcasecmp(encoding, BAD_CAST "UTF-16")) ||
10549 * using UTF-16 and no decoder is present i.e. the
10550 UTF-8 compatible, then raise an
10557 "Document labelled UTF-16 but has UTF-8 content\n");
10564 * UTF-8 encoding is handled natively
10567 ((!xmlStrcasecmp(encoding, BAD_CAST "UTF-8")) ||
11275 * UTF-8 error occured otherwise
11278 xmlCheckCdataPush(const xmlChar *utf, int len, int complete) {
11283 if ((utf == NULL) || (len <= 0))
11287 c = utf[ix];
11297 if ((utf[ix+1] & 0xc0 ) != 0x80)
11299 codepoint = (utf[ix] & 0x1f) << 6;
11300 codepoint |= utf[ix+1] & 0x3f;
11306 if (((utf[ix+1] & 0xc0) != 0x80) ||
11307 ((utf[ix+2] & 0xc0) != 0x80))
11309 codepoint = (utf[ix] & 0xf) << 12;
11310 codepoint |= (utf[ix+1] & 0x3f) << 6;
11311 codepoint |= utf[ix+2] & 0x3f;
11317 if (((utf[ix+1] & 0xc0) != 0x80) ||
11318 ((utf[ix+2] & 0xc0) != 0x80) ||
11319 ((utf[ix+3] & 0xc0) != 0x80))
11321 codepoint = (utf[ix] & 0x7) << 18;
11322 codepoint |= (utf[ix+1] & 0x3f) << 12;
11323 codepoint |= (utf[ix+2] & 0x3f) << 6;
11324 codepoint |= utf[ix+3] & 0x3f;
12332 "Input is not proper UTF-8, indicate encoding !\n%s",
12439 BAD_CAST "UTF-16")) ||