• Home
  • Raw
  • Download

Lines Matching refs:UTF32

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, in ConvertUTF32toUTF16()
65 const UTF32* source = *sourceStart; in ConvertUTF32toUTF16()
68 UTF32 ch; in ConvertUTF32toUTF16()
112 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) { in ConvertUTF16toUTF32()
115 UTF32* target = *targetStart; in ConvertUTF16toUTF32()
116 UTF32 ch, ch2; in ConvertUTF16toUTF32()
190 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
221 UTF32 ch; in ConvertUTF16toUTF8()
223 const UTF32 byteMask = 0xBF; in ConvertUTF16toUTF8()
224 const UTF32 byteMark = 0x80; in ConvertUTF16toUTF8()
231 UTF32 ch2 = *source; in ConvertUTF16toUTF8()
257 …if (ch && (ch != (UTF32)0x09) && (ch != (UTF32)0x0a) && (ch != (UTF32)0x0d) && (ch < (UTF32)0x2… in ConvertUTF16toUTF8()
258 ch = (UTF32)0x3f; in ConvertUTF16toUTF8()
261 if((ch == (UTF32)0xFEFF) || (ch == (UTF32)0xFFFE)|| (ch == (UTF32)0xFFFF)) { in ConvertUTF16toUTF8()
266 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()
267 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()
268 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()
269 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()
353 UTF32 ch = 0; in ConvertUTF8toUTF16()
420 const UTF32** sourceStart, const UTF32* sourceEnd, in ConvertUTF32toUTF8()
423 const UTF32* source = *sourceStart; in ConvertUTF32toUTF8()
426 UTF32 ch; in ConvertUTF32toUTF8()
428 const UTF32 byteMask = 0xBF; in ConvertUTF32toUTF8()
429 const UTF32 byteMark = 0x80; in ConvertUTF32toUTF8()
443 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF32toUTF8()
444 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF32toUTF8()
445 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF32toUTF8()
474 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) { in ConvertUTF8toUTF32()
477 UTF32* target = *targetStart; in ConvertUTF8toUTF32()
479 UTF32 ch = 0; in ConvertUTF8toUTF32()