UTFstring Class Reference

#include <EbmlUnicodeString.h>

List of all members.

Public Types

typedef wchar_t value_type

Public Member Functions

 UTFstring (const wchar_t *)
 UTFstring (const UTFstring &)
bool operator== (const UTFstring &) const
bool operator!= (const UTFstring &cmp) const
UTFstringoperator= (const UTFstring &)
UTFstringoperator= (const wchar_t *)
UTFstringoperator= (wchar_t)
size_t length () const
 Return length of string.
 operator const wchar_t * () const
const wchar_t * c_str () const
const std::string & GetUTF8 () const
void SetUTF8 (const std::string &)

Protected Member Functions

void UpdateFromUTF8 ()
void UpdateFromUCS2 ()

Static Protected Member Functions

static bool wcscmp_internal (const wchar_t *str1, const wchar_t *str2)

Protected Attributes

size_t _Length
 length of the UCS string excluding the
wchar_t * _Data
 internal UCS representation
std::string UTF8string

Detailed Description

A class storing strings in a wchar_t (ie, in UCS-2 or UCS-4)

Note:
inspired by wstring which is not available everywhere

Member Function Documentation

void UTFstring::UpdateFromUTF8 (  )  [protected]
See also:
RFC 2279

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator
Generated on Tue Jun 8 11:06:04 2010 for libebml by  doxygen 1.6.3