1 #ifndef TAGLIB_UNICODE_H
2 #define TAGLIB_UNICODE_H
12 #ifndef DO_NOT_DOCUMENT // tell Doxygen not to document this header
110 #define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
111 #define UNI_MAX_BMP (UTF32)0x0000FFFF
112 #define UNI_MAX_UTF16 (UTF32)0x0010FFFF
113 #define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
117 typedef unsigned long UTF32;
118 typedef unsigned short UTF16;
119 typedef unsigned char UTF8;
120 typedef unsigned char Boolean;
130 strictConversion = 0,
134 ConversionResult ConvertUTF8toUTF16 (
135 const UTF8** sourceStart,
const UTF8* sourceEnd,
136 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
138 ConversionResult ConvertUTF16toUTF8 (
139 const UTF16** sourceStart,
const UTF16* sourceEnd,
140 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
142 Boolean isLegalUTF8Sequence(
const UTF8 *source,
const UTF8 *sourceEnd);