Defines | Typedefs | Enumerations | Functions | Variables
cvtutf.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for cvtutf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define unichar   UTF16

Typedefs

typedef unsigned short UCS2
typedef unsigned long UCS4
typedef unsigned short UTF16
typedef unsigned char UTF8

Enumerations

enum  ConversionResult { ok, sourceExhausted, targetExhausted }

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 const UCS4 kMaximumUCS2 = 0x0000FFFFUL
static const UCS4 kMaximumUCS4 = 0x7FFFFFFFUL
static const UCS4 kMaximumUTF16 = 0x0010FFFFUL
static const UCS4 kReplacementCharacter = 0x0000FFFDUL

Define Documentation

#define unichar   UTF16

Definition at line 56 of file cvtutf.h.


Typedef Documentation

typedef unsigned short UCS2

Definition at line 53 of file cvtutf.h.

typedef unsigned long UCS4

Definition at line 52 of file cvtutf.h.

typedef unsigned short UTF16

Definition at line 54 of file cvtutf.h.

typedef unsigned char UTF8

Definition at line 55 of file cvtutf.h.


Enumeration Type Documentation

Enumerator:
ok 
sourceExhausted 
targetExhausted 

Definition at line 79 of file cvtutf.h.


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

const UCS4 kMaximumUCS2 = 0x0000FFFFUL [static]

Definition at line 61 of file cvtutf.h.

const UCS4 kMaximumUCS4 = 0x7FFFFFFFUL [static]

Definition at line 63 of file cvtutf.h.

const UCS4 kMaximumUTF16 = 0x0010FFFFUL [static]

Definition at line 62 of file cvtutf.h.

const UCS4 kReplacementCharacter = 0x0000FFFDUL [static]

Definition at line 60 of file cvtutf.h.



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