ucommon
Data Structures | Namespaces | Typedefs | Functions
ucommon/unicode.h File Reference

Basic UCommon Unicode support. More...

#include <ucommon/string.h>
Include dependency graph for unicode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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

Namespaces

namespace  ucommon
 

Common namespace for all ucommon objects.


Typedefs

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

Functions

template<>
void ucommon::dupfree< ucs2_t * > (ucs2_t *string)
template<>
void ucommon::dupfree< ucs4_t * > (ucs4_t *string)
template<>
void ucommon::dupfree< unicode_t > (unicode_t string)
ucs4_t * ucommon::strudup (char *string)
ucs2_t * ucommon::strwdup (char *string)
unicode_t ucommon::unidup (char *string)

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.