• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libantlr3c-3.2/src/

Lines Matching refs:UTF32

25     Conversions between UTF32, UTF-16, and UTF-8. Source code file.
50 static const UTF32 halfBase = 0x0010000UL;
51 static const UTF32 halfMask = 0x3FFUL;
53 #define UNI_SUR_HIGH_START (UTF32)0xD800
54 #define UNI_SUR_HIGH_END (UTF32)0xDBFF
55 #define UNI_SUR_LOW_START (UTF32)0xDC00
56 #define UNI_SUR_LOW_END (UTF32)0xDFFF
63 const UTF32** sourceStart, const UTF32* sourceEnd,
66 const UTF32* source = *sourceStart;
69 UTF32 ch;
113 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
116 UTF32* target = *targetStart;
117 UTF32 ch, ch2;
121 /* If we have a surrogate pair, convert to UTF32 first. */
126 /* If it's a low surrogate, convert to UTF32. */
191 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
222 UTF32 ch;
224 const UTF32 byteMask = 0xBF;
225 const UTF32 byteMark = 0x80;
228 /* If we have a surrogate pair, convert to UTF32 first. */
232 UTF32 ch2 = *source;
233 /* If it's a low surrogate, convert to UTF32. */
257 if (ch < (UTF32)0x80) { bytesToWrite = 1;
258 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
259 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
260 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
346 UTF32 ch = 0;
413 const UTF32** sourceStart, const UTF32* sourceEnd,
416 const UTF32* source = *sourceStart;
419 UTF32 ch;
421 const UTF32 byteMask = 0xBF;
422 const UTF32 byteMark = 0x80;
434 * illegally large UTF32 things (> Plane 17) into replacement chars.
436 if (ch < (UTF32)0x80) { bytesToWrite = 1;
437 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
438 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
467 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
470 UTF32* target = *targetStart;
472 UTF32 ch = 0;