Home | History | Annotate | Download | only in Support

Lines Matching refs:UTF32

33     Conversions between UTF32, UTF-16, and UTF-8. Source code file.
58 static const UTF32 halfBase = 0x0010000UL;
59 static const UTF32 halfMask = 0x3FFUL;
61 #define UNI_SUR_HIGH_START (UTF32)0xD800
62 #define UNI_SUR_HIGH_END (UTF32)0xDBFF
63 #define UNI_SUR_LOW_START (UTF32)0xDC00
64 #define UNI_SUR_LOW_END (UTF32)0xDFFF
93 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
119 const UTF32** sourceStart, const UTF32* sourceEnd,
122 const UTF32* source = *sourceStart;
125 UTF32 ch;
169 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
172 UTF32* target = *targetStart;
173 UTF32 ch, ch2;
177 /* If we have a surrogate pair, convert to UTF32 first. */
182 /* If it's a low surrogate, convert to UTF32. */
228 UTF32 ch;
230 const UTF32 byteMask = 0xBF;
231 const UTF32 byteMark = 0x80;
234 /* If we have a surrogate pair, convert to UTF32 first. */
238 UTF32 ch2 = *source;
239 /* If it's a low surrogate, convert to UTF32. */
263 if (ch < (UTF32)0x80) { bytesToWrite = 1;
264 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
265 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
266 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
292 const UTF32** sourceStart, const UTF32* sourceEnd,
295 const UTF32* source = *sourceStart;
298 UTF32 ch;
300 const UTF32 byteMask = 0xBF;
301 const UTF32 byteMark = 0x80;
313 * illegally large UTF32 things (> Plane 17) into replacement chars.
315 if (ch < (UTF32)0x80) { bytesToWrite = 1;
316 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
317 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
522 UTF32 ch = 0;
590 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags,
594 UTF32* target = *targetStart;
596 UTF32 ch = 0;
677 UTF32 **targetStart,
678 UTF32 *targetEnd,
685 const UTF8 *sourceEnd, UTF32 **targetStart,
686 UTF32 *targetEnd, ConversionFlags flags) {