#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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
Typedef Documentation
| typedef unsigned short UCS2 |
| typedef unsigned long UCS4 |
| typedef unsigned short UTF16 |
| typedef unsigned char UTF8 |
Enumeration Type Documentation
- Enumerator:
| ok |
|
| sourceExhausted |
|
| targetExhausted |
|
Definition at line 79 of file cvtutf.h.
Function Documentation
Variable Documentation