#include "cvtutf.h"
Go to the source code of this file.
Functions | |
ConversionResult | ConvertUCS4toUTF16 (UCS4 **sourceStart, const UCS4 *sourceEnd, UTF16 **targetStart, const UTF16 *targetEnd) |
ConversionResult | ConvertUCS4toUTF8 (UCS4 **sourceStart, const UCS4 *sourceEnd, UTF8 **targetStart, const UTF8 *targetEnd) |
ConversionResult | ConvertUTF16toUCS4 (UTF16 **sourceStart, UTF16 *sourceEnd, UCS4 **targetStart, const UCS4 *targetEnd) |
ConversionResult | ConvertUTF8toUCS4 (UTF8 **sourceStart, UTF8 *sourceEnd, UCS4 **targetStart, const UCS4 *targetEnd) |
int | NSConvertUTF16toUTF8 (unichar **sourceStart, const unichar *sourceEnd, unsigned char **targetStart, const unsigned char *targetEnd) |
int | NSConvertUTF8toUTF16 (unsigned char **sourceStart, unsigned char *sourceEnd, unichar **targetStart, const unichar *targetEnd) |
Variables | |
static char | bytesFromUTF8 [256] |
static UTF8 | firstByteMark [7] = {0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC} |
static const UCS4 | halfBase = 0x0010000UL |
static const UCS4 | halfMask = 0x3FFUL |
static const int | halfShift = 10 |
static const UCS4 | kSurrogateHighEnd = 0xDBFFUL |
static const UCS4 | kSurrogateHighStart = 0xD800UL |
static const UCS4 | kSurrogateLowEnd = 0xDFFFUL |
static const UCS4 | kSurrogateLowStart = 0xDC00UL |
static UCS4 | offsetsFromUTF8 [6] |
ConversionResult ConvertUCS4toUTF16 | ( | UCS4 ** | sourceStart, |
const UCS4 * | sourceEnd, | ||
UTF16 ** | targetStart, | ||
const UTF16 * | targetEnd | ||
) |
ConversionResult ConvertUCS4toUTF8 | ( | UCS4 ** | sourceStart, |
const UCS4 * | sourceEnd, | ||
UTF8 ** | targetStart, | ||
const UTF8 * | targetEnd | ||
) |
ConversionResult ConvertUTF16toUCS4 | ( | UTF16 ** | sourceStart, |
UTF16 * | sourceEnd, | ||
UCS4 ** | targetStart, | ||
const UCS4 * | targetEnd | ||
) |
ConversionResult ConvertUTF8toUCS4 | ( | UTF8 ** | sourceStart, |
UTF8 * | sourceEnd, | ||
UCS4 ** | targetStart, | ||
const UCS4 * | targetEnd | ||
) |
int NSConvertUTF16toUTF8 | ( | unichar ** | sourceStart, |
const unichar * | sourceEnd, | ||
unsigned char ** | targetStart, | ||
const unsigned char * | targetEnd | ||
) |
int NSConvertUTF8toUTF16 | ( | unsigned char ** | sourceStart, |
unsigned char * | sourceEnd, | ||
unichar ** | targetStart, | ||
const unichar * | targetEnd | ||
) |
char bytesFromUTF8[256] [static] |
{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5 }
UTF8 firstByteMark[7] = {0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC} [static] |
const UCS4 kSurrogateHighEnd = 0xDBFFUL [static] |
const UCS4 kSurrogateHighStart = 0xD800UL [static] |
const UCS4 kSurrogateLowEnd = 0xDFFFUL [static] |
const UCS4 kSurrogateLowStart = 0xDC00UL [static] |
UCS4 offsetsFromUTF8[6] [static] |