Home | History | Annotate | Download | only in libxml2

Lines Matching refs:utf

1957  *           running with UTF-8 encoding.
1966 * Clean macros, not dependent of an ASCII context, expect UTF-8 encoding
1969 * in UTF-8 mode. It also pop-up unfinished entities on the fly.
7118 * So we are using non-UTF-8 buffers
7139 * Just encode the value in UTF-8
10318 * UTF-16 encoding stwich has already taken place at this stage,
10322 ((!xmlStrcasecmp(encoding, BAD_CAST "UTF-16")) ||
10326 * using UTF-16 and no decoder is present i.e. the
10327 * document is apparently UTF-8 compatible, then raise an
10334 "Document labelled UTF-16 but has UTF-8 content\n");
10341 * UTF-8 encoding is handled natively
10344 ((!xmlStrcasecmp(encoding, BAD_CAST "UTF-8")) ||
11040 * UTF-8 error occured otherwise
11043 xmlCheckCdataPush(const xmlChar *utf, int len) {
11048 if ((utf == NULL) || (len <= 0))
11052 c = utf[ix];
11062 if ((utf[ix+1] & 0xc0 ) != 0x80)
11064 codepoint = (utf[ix] & 0x1f) << 6;
11065 codepoint |= utf[ix+1] & 0x3f;
11071 if (((utf[ix+1] & 0xc0) != 0x80) ||
11072 ((utf[ix+2] & 0xc0) != 0x80))
11074 codepoint = (utf[ix] & 0xf) << 12;
11075 codepoint |= (utf[ix+1] & 0x3f) << 6;
11076 codepoint |= utf[ix+2] & 0x3f;
11082 if (((utf[ix+1] & 0xc0) != 0x80) ||
11083 ((utf[ix+2] & 0xc0) != 0x80) ||
11084 ((utf[ix+3] & 0xc0) != 0x80))
11086 codepoint = (utf[ix] & 0x7) << 18;
11087 codepoint |= (utf[ix+1] & 0x3f) << 12;
11088 codepoint |= (utf[ix+2] & 0x3f) << 6;
11089 codepoint |= utf[ix+3] & 0x3f;
12097 "Input is not proper UTF-8, indicate encoding !\n%s",
12204 BAD_CAST "UTF-16")) ||