#include "utf8.h"Defines | |
| #define | INVALID_CHAR 0x0FFFD |
| #define | FIRST_BYTE(mask, shift) |
| #define | NEXT_BYTE(shift) |
| #define | ENC_DEFAULT 0 |
| #define | ENC_UTF8 1 |
| #define | ENC_UTF16BE 2 |
| #define | ENC_UTF16LE 3 |
| #define ENC_DEFAULT 0 |
| #define ENC_UTF16BE 2 |
| #define ENC_UTF16LE 3 |
| #define ENC_UTF8 1 |
| #define FIRST_BYTE | ( | mask, | ||
| shift | ||||
| ) |
/* Post-increment iterator */ \
uc = (*it++ & (mask)) << (shift);
Referenced by utf8::decodeNextUnicodeCharacter().
| #define INVALID_CHAR 0x0FFFD |
Referenced by utf8::decodeCanonicalString().
| #define NEXT_BYTE | ( | shift | ) |
\
if (it == e || *it == 0) return 0; /* end of buffer, do not advance */ \
if ((*it & 0xC0) != 0x80) return utf8::invalid; /* standard check */ \
/* Post-increment iterator: */ \
uc |= (*it++ & 0x3F) << shift;
Referenced by utf8::decodeNextUnicodeCharacter().
1.7.1