IccMAX 2.1.27
Color Profile Tools
|
#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 |
#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 |
icUtfConversionResult icConvertUTF16toUTF32 | ( | const UTF16 ** | sourceStart, |
const UTF16 * | sourceEnd, | ||
UTF32 ** | targetStart, | ||
UTF32 * | targetEnd, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, halfBase, halfShift, sourceExhausted, sourceIllegal, strictConversion, and targetExhausted.
icUtfConversionResult icConvertUTF16toUTF32 | ( | const UTF16 * | source, |
const UTF16 * | sourceEnd, | ||
icUtf32Vector | target, | ||
UTF32 * | targetEnd, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, halfBase, halfShift, sourceExhausted, sourceIllegal, and strictConversion.
icUtfConversionResult icConvertUTF16toUTF8 | ( | const UTF16 ** | sourceStart, |
const UTF16 * | sourceEnd, | ||
UTF8 ** | targetStart, | ||
UTF8 * | targetEnd, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, firstByteMark, halfBase, halfShift, sourceExhausted, sourceIllegal, strictConversion, and targetExhausted.
Referenced by icUtf16ToUtf8().
icUtfConversionResult icConvertUTF16toUTF8 | ( | const UTF16 * | source, |
const UTF16 * | sourceEnd, | ||
icUtf8Vector & | target, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, firstByteMark, halfBase, halfShift, sourceExhausted, sourceIllegal, and strictConversion.
Referenced by CIccTagUtf16Text::GetText(), CIccTagUtf8Text::SetText(), and CIccTagZipUtf8Text::SetText().
icUtfConversionResult icConvertUTF32toUTF16 | ( | const UTF32 ** | sourceStart, |
const UTF32 * | sourceEnd, | ||
UTF16 ** | targetStart, | ||
UTF16 * | targetEnd, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, halfBase, halfMask, halfShift, sourceIllegal, strictConversion, and targetExhausted.
Referenced by CIccLocalizedUnicode::SetText().
icUtfConversionResult icConvertUTF32toUTF16 | ( | const UTF32 * | source, |
const UTF32 * | sourceEnd, | ||
icUtf16Vector & | target, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, halfBase, halfMask, halfShift, sourceIllegal, and strictConversion.
icUtfConversionResult icConvertUTF32toUTF8 | ( | const UTF32 ** | sourceStart, |
const UTF32 * | sourceEnd, | ||
UTF8 ** | targetStart, | ||
UTF8 * | targetEnd, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, firstByteMark, sourceIllegal, strictConversion, and targetExhausted.
icUtfConversionResult icConvertUTF32toUTF8 | ( | const UTF32 * | source, |
const UTF32 * | sourceEnd, | ||
icUtf8Vector & | target, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, firstByteMark, sourceIllegal, and strictConversion.
icUtfConversionResult icConvertUTF8toUTF16 | ( | const UTF8 ** | sourceStart, |
const UTF8 * | sourceEnd, | ||
UTF16 ** | targetStart, | ||
UTF16 * | targetEnd, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, halfBase, halfMask, halfShift, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, and trailingBytesForUTF8.
Referenced by CIccUTF16String::CIccUTF16String(), and CIccUTF16String::FromUtf8().
icUtfConversionResult icConvertUTF8toUTF16 | ( | const UTF8 * | source, |
const UTF8 * | sourceEnd, | ||
icUtf16Vector & | target, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, halfBase, halfMask, halfShift, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, and trailingBytesForUTF8.
Referenced by CIccTagUtf16Text::SetText().
icUtfConversionResult icConvertUTF8toUTF32 | ( | const UTF8 ** | sourceStart, |
const UTF8 * | sourceEnd, | ||
UTF32 ** | targetStart, | ||
UTF32 * | targetEnd, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, targetExhausted, and trailingBytesForUTF8.
icUtfConversionResult icConvertUTF8toUTF32 | ( | const UTF8 * | source, |
const UTF8 * | sourceEnd, | ||
icUtf32Vector & | target, | ||
icUtfConversionFlags | flags | ||
) |
References conversionOK, isLegalUTF8(), offsetsFromUTF8, sourceExhausted, sourceIllegal, strictConversion, and trailingBytesForUTF8.
References isLegalUTF8(), and trailingBytesForUTF8.
Referenced by icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), icConvertUTF8toUTF32(), and icIsLegalUTF8Sequence().
|
static |
Referenced by icConvertUTF16toUTF8(), icConvertUTF16toUTF8(), icConvertUTF32toUTF8(), and icConvertUTF32toUTF8().
|
static |
|
static |
Referenced by icConvertUTF32toUTF16(), icConvertUTF32toUTF16(), icConvertUTF8toUTF16(), and icConvertUTF8toUTF16().
|
static |
|
static |
Referenced by icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), and icConvertUTF8toUTF32().
|
static |
Referenced by icConvertUTF8toUTF16(), icConvertUTF8toUTF16(), icConvertUTF8toUTF32(), icConvertUTF8toUTF32(), and icIsLegalUTF8Sequence().