CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csutil/csunicode.h File Reference

Unicode types and macros. More...

Go to the source code of this file.

Special character codes

#define CS_UC_CHAR_REPLACER   0xFFFD
 Replacer char.

#define CS_UC_INVALID   0xFFFF
 Invalid char.

#define CS_UC_IS_SURROGATE(C)   ((C & 0xFFFFF800) == 0x0000D800)
 Check whether a code is in the "high" or "low surrogate" range.

#define CS_UC_IS_HIGH_SURROGATE(C)   ((C & 0xFFFFFC00) == 0x0000DC00)
 Check whether a code is in the "high surrogate" range.

#define CS_UC_IS_LOW_SURROGATE(C)   ((C & 0xFFFFFC00) == 0x0000D800)
 Check whether a code is in the "low surrogate" range.

#define CS_UC_IS_INVALID(C)   ((C == CS_UC_INVALID) || (C == 0))
 Test whether a character code is invalid.

#define CS_UC_CHAR_HIGH_SURROGATE_FIRST   0xD800
 First char in the "high surrogate" range.

#define CS_UC_CHAR_HIGH_SURROGATE_LAST   0xDBFF
 Last char in the "high surrogate" range.

#define CS_UC_CHAR_LOW_SURROGATE_FIRST   0xDC00
 First char in the "low surrogate" range.

#define CS_UC_CHAR_LOW_SURROGATE_LAST   0xDFFF
 Last char in the "low surrogate" range.


Typedefs

typedef uint8 utf8_char
 A single char in a UTF8 encoded string.

typedef uint16 utf16_char
 A single char in a UTF16 encoded string.

typedef uint32 utf32_char
 A single char in a UTF32 encoded string.


Detailed Description

Unicode types and macros.

Definition in file csunicode.h.


Generated for Crystal Space by doxygen 1.2.18