ucommon

ucommon/unicode.h File Reference

Basic UCommon Unicode support. More...

#include <ucommon/string.h>
Include dependency graph for unicode.h:

Go to the source code of this file.

Data Structures

class  UString
 A copy-on-write utf8 string class that operates by reference count. More...
class  utf8
 A core class of ut8 encoded string functions. More...
class  utf8_pointer
 Pointer to utf8 encoded character data. More...

Typedefs

typedef int16_t ucs2_t
 16 bit unicode character code.
typedef void * unicode_t
 Resolves issues where wchar_t is not defined.
typedef UString ustring_t
 Convenience type for utf8 encoded strings.
typedef utf8_pointer utf8_t
 Convenience type for utf8_pointer strings.

Variables

NAMESPACE_UCOMMON typedef int32_t ucs4_t
 32 bit unicode character code.

Detailed Description

Basic UCommon Unicode support.

This includes computing unicode transcoding and supporting a UTF8-aware string class (UString). We may add support for a wchar_t aware string class as well, as some external api libraries may require ucs-2 or 4 encoded strings.

Definition in file unicode.h.


Typedef Documentation

typedef int16_t ucs2_t

16 bit unicode character code.

Java and some api's like these.

Definition at line 50 of file unicode.h.


Variable Documentation

NAMESPACE_UCOMMON typedef int32_t ucs4_t

32 bit unicode character code.

We may extract this from a ucs2 or utf8 string.

Definition at line 45 of file unicode.h.