Lines Matching refs:UTF32

33     Conversions between UTF32, UTF-16, and UTF-8. Source code file.
57 static const UTF32 halfBase = 0x0010000UL;
58 static const UTF32 halfMask = 0x3FFUL;
60 #define UNI_SUR_HIGH_START (UTF32)0xD800
61 #define UNI_SUR_HIGH_END (UTF32)0xDBFF
62 #define UNI_SUR_LOW_START (UTF32)0xDC00
63 #define UNI_SUR_LOW_END (UTF32)0xDFFF
92 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
118 const UTF32** sourceStart, const UTF32* sourceEnd,
121 const UTF32* source = *sourceStart;
124 UTF32 ch;
168 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
171 UTF32* target = *targetStart;
172 UTF32 ch, ch2;
176 /* If we have a surrogate pair, convert to UTF32 first. */
181 /* If it's a low surrogate, convert to UTF32. */
227 UTF32 ch;
229 const UTF32 byteMask = 0xBF;
230 const UTF32 byteMark = 0x80;
233 /* If we have a surrogate pair, convert to UTF32 first. */
237 UTF32 ch2 = *source;
238 /* If it's a low surrogate, convert to UTF32. */
262 if (ch < (UTF32)0x80) { bytesToWrite = 1;
263 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
264 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
265 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
291 const UTF32** sourceStart, const UTF32* sourceEnd,
294 const UTF32* source = *sourceStart;
297 UTF32 ch;
299 const UTF32 byteMask = 0xBF;
300 const UTF32 byteMark = 0x80;
312 * illegally large UTF32 things (> Plane 17) into replacement chars.
314 if (ch < (UTF32)0x80) { bytesToWrite = 1;
315 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
316 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
428 UTF32 ch = 0;
496 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
499 UTF32* target = *targetStart;
501 UTF32 ch = 0;