Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
#include "IccConvertUTF.h"
Go to the source code of this file.
Macros | |
#define | false 0 |
#define | true 1 |
#define | UNI_SUR_HIGH_END (UTF32)0xDBFF |
#define | UNI_SUR_HIGH_START (UTF32)0xD800 |
#define | UNI_SUR_LOW_END (UTF32)0xDFFF |
#define | UNI_SUR_LOW_START (UTF32)0xDC00 |
Functions | |
icUtfConversionResult | icConvertUTF16toUTF32 (const UTF16 **sourceStart, const UTF16 *sourceEnd, UTF32 **targetStart, UTF32 *targetEnd, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF16toUTF32 (const UTF16 *source, const UTF16 *sourceEnd, icUtf32Vector target, UTF32 *targetEnd, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF16toUTF8 (const UTF16 **sourceStart, const UTF16 *sourceEnd, UTF8 **targetStart, UTF8 *targetEnd, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF16toUTF8 (const UTF16 *source, const UTF16 *sourceEnd, icUtf8Vector &target, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF32toUTF16 (const UTF32 **sourceStart, const UTF32 *sourceEnd, UTF16 **targetStart, UTF16 *targetEnd, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF32toUTF16 (const UTF32 *source, const UTF32 *sourceEnd, icUtf16Vector &target, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF32toUTF8 (const UTF32 **sourceStart, const UTF32 *sourceEnd, UTF8 **targetStart, UTF8 *targetEnd, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF32toUTF8 (const UTF32 *source, const UTF32 *sourceEnd, icUtf8Vector &target, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF8toUTF16 (const UTF8 **sourceStart, const UTF8 *sourceEnd, UTF16 **targetStart, UTF16 *targetEnd, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF8toUTF16 (const UTF8 *source, const UTF8 *sourceEnd, icUtf16Vector &target, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF8toUTF32 (const UTF8 **sourceStart, const UTF8 *sourceEnd, UTF32 **targetStart, UTF32 *targetEnd, icUtfConversionFlags flags) |
icUtfConversionResult | icConvertUTF8toUTF32 (const UTF8 *source, const UTF8 *sourceEnd, icUtf32Vector &target, icUtfConversionFlags flags) |
Boolean | icIsLegalUTF8Sequence (const UTF8 *source, const UTF8 *sourceEnd) |
static Boolean | isLegalUTF8 (const UTF8 *source, int length) |
Variables | |
static const UTF8 | firstByteMark [7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC } |
static const UTF32 | halfBase = 0x0010000UL |
static const UTF32 | halfMask = 0x3FFUL |
static const int | halfShift = 10 |
static const UTF32 | offsetsFromUTF8 [6] |
static const char | trailingBytesForUTF8 [256] |
#define false 0 |
Definition at line 56 of file IccConvertUTF.cpp.
#define true 1 |
Definition at line 57 of file IccConvertUTF.cpp.
#define UNI_SUR_HIGH_END (UTF32)0xDBFF |
Definition at line 53 of file IccConvertUTF.cpp.
Referenced by icConvertUTF16toUTF32(), icConvertUTF16toUTF32(), icConvertUTF16toUTF8(), and icConvertUTF16toUTF8().
#define UNI_SUR_HIGH_START (UTF32)0xD800 |
Definition at line 52 of file IccConvertUTF.cpp.
Referenced by icConvertUTF16toUTF32(), icConvertUTF16toUTF32(), icConvertUTF16toUTF8(), icConvertUTF16toUTF8(), icConvertUTF32toUTF16(), icConvertUTF32toUTF16(), icConvertUTF32toUTF8(), icConvertUTF32toUTF8(), icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), and icConvertUTF8toUTF32().
#define UNI_SUR_LOW_END (UTF32)0xDFFF |
Definition at line 55 of file IccConvertUTF.cpp.
Referenced by icConvertUTF16toUTF32(), icConvertUTF16toUTF32(), icConvertUTF16toUTF8(), icConvertUTF16toUTF8(), icConvertUTF32toUTF16(), icConvertUTF32toUTF16(), icConvertUTF32toUTF8(), icConvertUTF32toUTF8(), icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), and icConvertUTF8toUTF32().
#define UNI_SUR_LOW_START (UTF32)0xDC00 |
Definition at line 54 of file IccConvertUTF.cpp.
Referenced by icConvertUTF16toUTF32(), icConvertUTF16toUTF32(), icConvertUTF16toUTF8(), icConvertUTF16toUTF8(), icConvertUTF32toUTF16(), icConvertUTF32toUTF16(), icConvertUTF8toUTF16(), and icConvertUTF8toUTF16().
icUtfConversionResult icConvertUTF16toUTF32 | ( | const UTF16 ** | sourceStart, |
const UTF16 * | sourceEnd, | ||
UTF32 ** | targetStart, | ||
UTF32 * | targetEnd, | ||
icUtfConversionFlags | flags ) |
Definition at line 147 of file IccConvertUTF.cpp.
References conversionOK, halfBase, halfShift, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, UNI_SUR_HIGH_END, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
icUtfConversionResult icConvertUTF16toUTF32 | ( | const UTF16 * | source, |
const UTF16 * | sourceEnd, | ||
icUtf32Vector | target, | ||
UTF32 * | targetEnd, | ||
icUtfConversionFlags | flags ) |
Definition at line 202 of file IccConvertUTF.cpp.
References conversionOK, halfBase, halfShift, sourceExhausted, sourceIllegal, strictConversion, UNI_SUR_HIGH_END, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
icUtfConversionResult icConvertUTF16toUTF8 | ( | const UTF16 ** | sourceStart, |
const UTF16 * | sourceEnd, | ||
UTF8 ** | targetStart, | ||
UTF8 * | targetEnd, | ||
icUtfConversionFlags | flags ) |
Definition at line 299 of file IccConvertUTF.cpp.
References conversionOK, 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 CIccTagUtf16Text::GetText(), icUtf16ToUtf8(), CIccTagUtf8Text::SetText(), and CIccTagZipUtf8Text::SetText().
icUtfConversionResult icConvertUTF16toUTF8 | ( | const UTF16 * | source, |
const UTF16 * | sourceEnd, | ||
icUtf8Vector & | target, | ||
icUtfConversionFlags | flags ) |
Definition at line 367 of file IccConvertUTF.cpp.
References conversionOK, firstByteMark, halfBase, halfShift, sourceExhausted, sourceIllegal, strictConversion, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_END, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
icUtfConversionResult icConvertUTF32toUTF16 | ( | const UTF32 ** | sourceStart, |
const UTF32 * | sourceEnd, | ||
UTF16 ** | targetStart, | ||
UTF16 * | targetEnd, | ||
icUtfConversionFlags | flags ) |
Definition at line 61 of file IccConvertUTF.cpp.
References conversionOK, 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 CIccLocalizedUnicode::SetText().
icUtfConversionResult icConvertUTF32toUTF16 | ( | const UTF32 * | source, |
const UTF32 * | sourceEnd, | ||
icUtf16Vector & | target, | ||
icUtfConversionFlags | flags ) |
Definition at line 108 of file IccConvertUTF.cpp.
References conversionOK, halfBase, halfMask, halfShift, sourceIllegal, strictConversion, UNI_MAX_BMP, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
icUtfConversionResult icConvertUTF32toUTF8 | ( | const UTF32 ** | sourceStart, |
const UTF32 * | sourceEnd, | ||
UTF8 ** | targetStart, | ||
UTF8 * | targetEnd, | ||
icUtfConversionFlags | flags ) |
Definition at line 622 of file IccConvertUTF.cpp.
References conversionOK, firstByteMark, sourceIllegal, strictConversion, targetExhausted, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, and UNI_SUR_LOW_END.
icUtfConversionResult icConvertUTF32toUTF8 | ( | const UTF32 * | source, |
const UTF32 * | sourceEnd, | ||
icUtf8Vector & | target, | ||
icUtfConversionFlags | flags ) |
Definition at line 673 of file IccConvertUTF.cpp.
References conversionOK, firstByteMark, sourceIllegal, strictConversion, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, and UNI_SUR_LOW_END.
icUtfConversionResult icConvertUTF8toUTF16 | ( | const UTF8 ** | sourceStart, |
const UTF8 * | sourceEnd, | ||
UTF16 ** | targetStart, | ||
UTF16 * | targetEnd, | ||
icUtfConversionFlags | flags ) |
Definition at line 489 of file IccConvertUTF.cpp.
References conversionOK, 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 CIccUTF16String::CIccUTF16String(), CIccUTF16String::FromUtf8(), and CIccTagUtf16Text::SetText().
icUtfConversionResult icConvertUTF8toUTF16 | ( | const UTF8 * | source, |
const UTF8 * | sourceEnd, | ||
icUtf16Vector & | target, | ||
icUtfConversionFlags | flags ) |
Definition at line 560 of file IccConvertUTF.cpp.
References conversionOK, halfBase, halfMask, halfShift, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, trailingBytesForUTF8, UNI_MAX_BMP, UNI_MAX_UTF16, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, UNI_SUR_LOW_END, and UNI_SUR_LOW_START.
icUtfConversionResult icConvertUTF8toUTF32 | ( | const UTF8 ** | sourceStart, |
const UTF8 * | sourceEnd, | ||
UTF32 ** | targetStart, | ||
UTF32 * | targetEnd, | ||
icUtfConversionFlags | flags ) |
Definition at line 723 of file IccConvertUTF.cpp.
References conversionOK, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, trailingBytesForUTF8, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, and UNI_SUR_LOW_END.
icUtfConversionResult icConvertUTF8toUTF32 | ( | const UTF8 * | source, |
const UTF8 * | sourceEnd, | ||
icUtf32Vector & | target, | ||
icUtfConversionFlags | flags ) |
Definition at line 783 of file IccConvertUTF.cpp.
References conversionOK, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, trailingBytesForUTF8, UNI_MAX_LEGAL_UTF32, UNI_REPLACEMENT_CHAR, UNI_SUR_HIGH_START, and UNI_SUR_LOW_END.
Definition at line 478 of file IccConvertUTF.cpp.
References isLegalUTF8(), and trailingBytesForUTF8.
Definition at line 446 of file IccConvertUTF.cpp.
Referenced by icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), icConvertUTF8toUTF32(), and icIsLegalUTF8Sequence().
|
static |
Definition at line 285 of file IccConvertUTF.cpp.
Referenced by icConvertUTF16toUTF8(), icConvertUTF16toUTF8(), icConvertUTF32toUTF8(), and icConvertUTF32toUTF8().
|
static |
Definition at line 49 of file IccConvertUTF.cpp.
Referenced by icConvertUTF16toUTF32(), icConvertUTF16toUTF32(), icConvertUTF16toUTF8(), icConvertUTF16toUTF8(), icConvertUTF32toUTF16(), icConvertUTF32toUTF16(), icConvertUTF8toUTF16(), and icConvertUTF8toUTF16().
|
static |
Definition at line 50 of file IccConvertUTF.cpp.
Referenced by icConvertUTF32toUTF16(), icConvertUTF32toUTF16(), icConvertUTF8toUTF16(), and icConvertUTF8toUTF16().
|
static |
Definition at line 47 of file IccConvertUTF.cpp.
Referenced by icConvertUTF16toUTF32(), icConvertUTF16toUTF32(), icConvertUTF16toUTF8(), icConvertUTF16toUTF8(), icConvertUTF32toUTF16(), icConvertUTF32toUTF16(), icConvertUTF8toUTF16(), and icConvertUTF8toUTF16().
|
static |
Definition at line 275 of file IccConvertUTF.cpp.
Referenced by icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), and icConvertUTF8toUTF32().
|
static |
Definition at line 259 of file IccConvertUTF.cpp.
Referenced by icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), icConvertUTF8toUTF32(), and icIsLegalUTF8Sequence().