Home | History | Annotate | Download | only in src

Lines Matching refs:UTF32

25     Conversions between UTF32, UTF-16, and UTF-8. Source code file.
53 const UTF32** sourceStart, const UTF32* sourceEnd,
56 const UTF32* source = *sourceStart;
59 UTF32 ch;
103 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
106 UTF32* target = *targetStart;
107 UTF32 ch, ch2;
111 /* If we have a surrogate pair, convert to UTF32 first. */
116 /* If it's a low surrogate, convert to UTF32. */
181 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
212 UTF32 ch;
214 const UTF32 byteMask = 0xBF;
215 const UTF32 byteMark = 0x80;
218 /* If we have a surrogate pair, convert to UTF32 first. */
222 UTF32 ch2 = *source;
223 /* If it's a low surrogate, convert to UTF32. */
247 if (ch < (UTF32)0x80) { bytesToWrite = 1;
248 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
249 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
250 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
336 UTF32 ch = 0;
403 const UTF32** sourceStart, const UTF32* sourceEnd,
406 const UTF32* source = *sourceStart;
409 UTF32 ch;
411 const UTF32 byteMask = 0xBF;
412 const UTF32 byteMark = 0x80;
424 * illegally large UTF32 things (> Plane 17) into replacement chars.
426 if (ch < (UTF32)0x80) { bytesToWrite = 1;
427 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
428 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
457 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
460 UTF32* target = *targetStart;
462 UTF32 ch = 0;