|
ANTLR3C 3.3.1
|
#include "antlr3convertutf.h"
Functions | |
| ConversionResult | ConvertUTF16toUTF32 (const UTF16 **sourceStart, const UTF16 *sourceEnd, UTF32 **targetStart, UTF32 *targetEnd, ConversionFlags flags) |
| ConversionResult | ConvertUTF16toUTF8 (const UTF16 **sourceStart, const UTF16 *sourceEnd, UTF8 **targetStart, UTF8 *targetEnd, ConversionFlags flags) |
| ConversionResult | ConvertUTF32toUTF16 (const UTF32 **sourceStart, const UTF32 *sourceEnd, UTF16 **targetStart, UTF16 *targetEnd, ConversionFlags flags) |
| ConversionResult | ConvertUTF32toUTF8 (const UTF32 **sourceStart, const UTF32 *sourceEnd, UTF8 **targetStart, UTF8 *targetEnd, ConversionFlags flags) |
| ConversionResult | ConvertUTF8toUTF16 (const UTF8 **sourceStart, const UTF8 *sourceEnd, UTF16 **targetStart, UTF16 *targetEnd, ConversionFlags flags) |
| ConversionResult | ConvertUTF8toUTF32 (const UTF8 **sourceStart, const UTF8 *sourceEnd, UTF32 **targetStart, UTF32 *targetEnd, ConversionFlags flags) |
| static ANTLR3_BOOLEAN | isLegalUTF8 (const UTF8 *source, int length) |
| ANTLR3_BOOLEAN | isLegalUTF8Sequence (const UTF8 *source, const UTF8 *sourceEnd) |
Variables | |
| static const UTF8 | firstByteMark [7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC } |
| static const UTF32 | offsetsFromUTF8 [6] |
| static const char | trailingBytesForUTF8 [256] |
| ConversionResult ConvertUTF16toUTF32 | ( | const UTF16 ** | sourceStart, |
| const UTF16 * | sourceEnd, | ||
| UTF32 ** | targetStart, | ||
| UTF32 * | targetEnd, | ||
| ConversionFlags | flags ) |
References conversionOK, ConvertUTF16toUTF32(), halfBase, halfShift, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, UNI_SUR_HIGH_END, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
Referenced by ConvertUTF16toUTF32().


| ConversionResult ConvertUTF16toUTF8 | ( | const UTF16 ** | sourceStart, |
| const UTF16 * | sourceEnd, | ||
| UTF8 ** | targetStart, | ||
| UTF8 * | targetEnd, | ||
| ConversionFlags | flags ) |
References conversionOK, ConvertUTF16toUTF8(), firstByteMark, halfBase, halfShift, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_END, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
Referenced by ConvertUTF16toUTF8(), and toUTF8_UTF16().


| ConversionResult ConvertUTF32toUTF16 | ( | const UTF32 ** | sourceStart, |
| const UTF32 * | sourceEnd, | ||
| UTF16 ** | targetStart, | ||
| UTF16 * | targetEnd, | ||
| ConversionFlags | flags ) |
References conversionOK, ConvertUTF32toUTF16(), halfBase, halfMask, halfShift, sourceIllegal, strictConversion, targetExhausted, UNI_MAX_BMP, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
Referenced by ConvertUTF32toUTF16().


| ConversionResult ConvertUTF32toUTF8 | ( | const UTF32 ** | sourceStart, |
| const UTF32 * | sourceEnd, | ||
| UTF8 ** | targetStart, | ||
| UTF8 * | targetEnd, | ||
| ConversionFlags | flags ) |
References conversionOK, ConvertUTF32toUTF8(), firstByteMark, sourceIllegal, strictConversion, targetExhausted, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, and UNI_SUR_LOW_END.
Referenced by ConvertUTF32toUTF8().


| ConversionResult ConvertUTF8toUTF16 | ( | const UTF8 ** | sourceStart, |
| const UTF8 * | sourceEnd, | ||
| UTF16 ** | targetStart, | ||
| UTF16 * | targetEnd, | ||
| ConversionFlags | flags ) |
References conversionOK, ConvertUTF8toUTF16(), halfBase, halfMask, halfShift, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, trailingBytesForUTF8, UNI_MAX_BMP, UNI_MAX_UTF16, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
Referenced by ConvertUTF8toUTF16().


| ConversionResult ConvertUTF8toUTF32 | ( | const UTF8 ** | sourceStart, |
| const UTF8 * | sourceEnd, | ||
| UTF32 ** | targetStart, | ||
| UTF32 * | targetEnd, | ||
| ConversionFlags | flags ) |
References conversionOK, ConvertUTF8toUTF32(), isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, trailingBytesForUTF8, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, and UNI_SUR_LOW_END.
Referenced by ConvertUTF8toUTF32().


|
static |
References ANTLR3_FALSE, ANTLR3_TRUE, and isLegalUTF8().
Referenced by ConvertUTF8toUTF16(), ConvertUTF8toUTF32(), isLegalUTF8(), and isLegalUTF8Sequence().


| ANTLR3_BOOLEAN isLegalUTF8Sequence | ( | const UTF8 * | source, |
| const UTF8 * | sourceEnd ) |
References ANTLR3_FALSE, isLegalUTF8(), isLegalUTF8Sequence(), and trailingBytesForUTF8.
Referenced by isLegalUTF8Sequence().


|
static |
Referenced by ConvertUTF16toUTF8(), and ConvertUTF32toUTF8().
|
static |
Referenced by antlr3UTF8Consume(), antlr3UTF8LA(), ConvertUTF8toUTF16(), and ConvertUTF8toUTF32().
|
static |
Referenced by antlr3UTF8Consume(), antlr3UTF8LA(), ConvertUTF8toUTF16(), ConvertUTF8toUTF32(), and isLegalUTF8Sequence().