Home | History | Annotate | Download | only in unicode

Lines Matching refs:UTF32

25     Conversions between UTF32, UTF-16, and UTF-8. Source code file.
49 static const UTF32 halfBase = 0x0010000UL;
50 static const UTF32 halfMask = 0x3FFUL;
52 #define UNI_SUR_HIGH_START (UTF32)0xD800
53 #define UNI_SUR_HIGH_END (UTF32)0xDBFF
54 #define UNI_SUR_LOW_START (UTF32)0xDC00
55 #define UNI_SUR_LOW_END (UTF32)0xDFFF
62 const UTF32** sourceStart, const UTF32* sourceEnd,
65 const UTF32* source = *sourceStart;
68 UTF32 ch;
112 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
115 UTF32* target = *targetStart;
116 UTF32 ch, ch2;
120 /* If we have a surrogate pair, convert to UTF32 first. */
125 /* If it's a low surrogate, convert to UTF32. */
190 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
221 UTF32 ch;
223 const UTF32 byteMask = 0xBF;
224 const UTF32 byteMark = 0x80;
227 /* If we have a surrogate pair, convert to UTF32 first. */
231 UTF32 ch2 = *source;
232 /* If it's a low surrogate, convert to UTF32. */
257 if (ch && (ch != (UTF32)0x09) && (ch != (UTF32)0x0a) && (ch != (UTF32)0x0d) && (ch < (UTF32)0x20) ) {
258 ch = (UTF32)0x3f;
261 if((ch == (UTF32)0xFEFF) || (ch == (UTF32)0xFFFE)|| (ch == (UTF32)0xFFFF)) {
266 if (ch < (UTF32)0x80) { bytesToWrite = 1;
267 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
268 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
269 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
353 UTF32 ch = 0;
420 const UTF32** sourceStart, const UTF32* sourceEnd,
423 const UTF32* source = *sourceStart;
426 UTF32 ch;
428 const UTF32 byteMask = 0xBF;
429 const UTF32 byteMark = 0x80;
441 * illegally large UTF32 things (> Plane 17) into replacement chars.
443 if (ch < (UTF32)0x80) { bytesToWrite = 1;
444 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
445 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
474 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
477 UTF32* target = *targetStart;
479 UTF32 ch = 0;