Functions | Variables
cvtutf.c File Reference
#include "cvtutf.h"
Include dependency graph for cvtutf.c:

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]

Function Documentation

ConversionResult ConvertUCS4toUTF16 ( UCS4 **  sourceStart,
const UCS4 sourceEnd,
UTF16 **  targetStart,
const UTF16 targetEnd 
)

Definition at line 52 of file cvtutf.c.

ConversionResult ConvertUCS4toUTF8 ( UCS4 **  sourceStart,
const UCS4 sourceEnd,
UTF8 **  targetStart,
const UTF8 targetEnd 
)

Definition at line 246 of file cvtutf.c.

ConversionResult ConvertUTF16toUCS4 ( UTF16 **  sourceStart,
UTF16 sourceEnd,
UCS4 **  targetStart,
const UCS4 targetEnd 
)

Definition at line 84 of file cvtutf.c.

ConversionResult ConvertUTF8toUCS4 ( UTF8 **  sourceStart,
UTF8 sourceEnd,
UCS4 **  targetStart,
const UCS4 targetEnd 
)

Definition at line 298 of file cvtutf.c.

int NSConvertUTF16toUTF8 ( unichar **  sourceStart,
const unichar sourceEnd,
unsigned char **  targetStart,
const unsigned char *  targetEnd 
)

Definition at line 144 of file cvtutf.c.

int NSConvertUTF8toUTF16 ( unsigned char **  sourceStart,
unsigned char *  sourceEnd,
unichar **  targetStart,
const unichar targetEnd 
)

Definition at line 199 of file cvtutf.c.


Variable Documentation

char bytesFromUTF8[256] [static]
Initial value:
 {
  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
}

Definition at line 119 of file cvtutf.c.

UTF8 firstByteMark[7] = {0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC} [static]

Definition at line 130 of file cvtutf.c.

const UCS4 halfBase = 0x0010000UL [static]

Definition at line 42 of file cvtutf.c.

const UCS4 halfMask = 0x3FFUL [static]

Definition at line 43 of file cvtutf.c.

const int halfShift = 10 [static]

Definition at line 41 of file cvtutf.c.

const UCS4 kSurrogateHighEnd = 0xDBFFUL [static]

Definition at line 45 of file cvtutf.c.

const UCS4 kSurrogateHighStart = 0xD800UL [static]

Definition at line 44 of file cvtutf.c.

const UCS4 kSurrogateLowEnd = 0xDFFFUL [static]

Definition at line 47 of file cvtutf.c.

const UCS4 kSurrogateLowStart = 0xDC00UL [static]

Definition at line 46 of file cvtutf.c.

UCS4 offsetsFromUTF8[6] [static]
Initial value:
 {
  0x00000000UL, 0x00003080UL, 0x000E2080UL, 
  0x03C82080UL, 0xFA082080UL, 0x82082080UL
}

Definition at line 115 of file cvtutf.c.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:21