ucstring Class Reference

#include <ucstring.h>

Inherits basic_string< ucchar >.

List of all members.

Public Member Functions

 ucstring ()
 ucstring (const ucstringbase &str)
 ucstring (const std::string &str)
 ~ucstring ()
ucstringoperator= (ucchar c)
ucstringoperator= (const char *str)
ucstringoperator= (const std::string &str)
ucstringoperator= (const ucstringbase &str)
ucstringoperator= (const ucchar *str)
ucstringoperator+= (ucchar c)
ucstringoperator+= (const char *str)
ucstringoperator+= (const std::string &str)
ucstringoperator+= (const ucstringbase &str)
const uccharc_str () const
void toString (std::string &str) const
 Converts the controlled ucstring to a string str.
std::string toString () const
 Converts the controlled ucstring and returns the resulting string.
std::string toUtf8 () const
 Convert this ucstring (16bits char) into a utf8 string.
ucstring luabind_substr (size_type pos=0, size_type n=npos) const
void fromUtf8 (const std::string &stringUtf8)
 Convert the utf8 string into this ucstring (16 bits char).

Static Public Member Functions

static ucstring makeFromUtf8 (const std::string &stringUtf8)

Private Member Functions

void rawCopy (const std::string &str)

Detailed Description

Definition at line 40 of file ucstring.h.


Constructor & Destructor Documentation

ucstring::ucstring (  )  [inline]

Definition at line 44 of file ucstring.h.

ucstring::ucstring ( const ucstringbase str  )  [inline]

Definition at line 46 of file ucstring.h.

ucstring::ucstring ( const std::string &  str  )  [inline]

Definition at line 48 of file ucstring.h.

References rawCopy().

ucstring::~ucstring (  )  [inline]

Definition at line 53 of file ucstring.h.


Member Function Documentation

const ucchar* ucstring::c_str (  )  const [inline]
void ucstring::fromUtf8 ( const std::string &  stringUtf8  )  [inline]

Convert the utf8 string into this ucstring (16 bits char).

Definition at line 202 of file ucstring.h.

References rawCopy().

Referenced by NLMISC::CVariable< std::string >::execute(), makeFromUtf8(), NLMISC::CI18N::readTextBuffer(), and NLMISC::CIXml::serial().

ucstring ucstring::luabind_substr ( size_type  pos = 0,
size_type  n = npos 
) const [inline]

Definition at line 196 of file ucstring.h.

References NLMISC::n.

static ucstring ucstring::makeFromUtf8 ( const std::string &  stringUtf8  )  [inline, static]

Definition at line 283 of file ucstring.h.

References fromUtf8().

Referenced by NLMISC::CStdDisplayer::doDisplay().

ucstring& ucstring::operator+= ( const ucstringbase str  )  [inline]

Definition at line 122 of file ucstring.h.

References operator+=().

ucstring& ucstring::operator+= ( const std::string &  str  )  [inline]

Definition at line 111 of file ucstring.h.

ucstring& ucstring::operator+= ( const char *  str  )  [inline]

Definition at line 100 of file ucstring.h.

ucstring& ucstring::operator+= ( ucchar  c  )  [inline]

Definition at line 93 of file ucstring.h.

Referenced by operator+=().

ucstring& ucstring::operator= ( const ucchar str  )  [inline]

Definition at line 88 of file ucstring.h.

References operator=().

ucstring& ucstring::operator= ( const ucstringbase str  )  [inline]

Definition at line 82 of file ucstring.h.

References operator=().

ucstring& ucstring::operator= ( const std::string &  str  )  [inline]

Definition at line 72 of file ucstring.h.

ucstring& ucstring::operator= ( const char *  str  )  [inline]

Definition at line 62 of file ucstring.h.

ucstring& ucstring::operator= ( ucchar  c  )  [inline]

Definition at line 55 of file ucstring.h.

Referenced by operator=().

void ucstring::rawCopy ( const std::string &  str  )  [inline, private]

Definition at line 293 of file ucstring.h.

Referenced by fromUtf8(), and ucstring().

std::string ucstring::toString (  )  const [inline]

Converts the controlled ucstring and returns the resulting string.

Definition at line 149 of file ucstring.h.

void ucstring::toString ( std::string &  str  )  const [inline]
std::string ucstring::toUtf8 (  )  const [inline]

Convert this ucstring (16bits char) into a utf8 string.

Definition at line 157 of file ucstring.h.

Referenced by NLMISC::CI18N::encodeUTF8(), NLMISC::CConfigFile::reparse(), NLMISC::COXml::serial(), and NL3D::CDriverGL::setWindowTitle().


The documentation for this class was generated from the following file:

Generated on Thu Jan 7 08:30:02 2010 for NeL by  doxygen 1.6.1