STRUTF8 Class Reference

Container for UTF-8 encoded string. More...

#include <mi32/strutf8.h>

List of all members.

Public Member Functions

 STRUTF8 (const MISTRING &rhs)
 STRUTF8 (const char *rhs)
 STRUTF8 (const STRUTF8 &rhs)
 STRUTF8 ()
 ~STRUTF8 ()
void Attach (unsigned char *&str)
void Attach (char *&str)
void Clear ()
const UINT8GetUINT8 () const
bool IsEmpty () const
 operator const char * () const
STRUTF8operator= (const MISTRING &rhs)
STRUTF8operator= (const unsigned char *rhs)
STRUTF8operator= (const char *rhs)
STRUTF8operator= (const STRUTF8 &rhs)

Detailed Description

Container for UTF-8 encoded string.

Strings are reference-counted, so copying and return-by-value is very efficient. Provides very minimal string modification support. For more extensive modification the MISTRING class should be used.


Constructor & Destructor Documentation

STRUTF8::STRUTF8 (  ) 

Default constructor.

STRUTF8::STRUTF8 ( const STRUTF8 rhs  ) 

Copy constructor.

STRUTF8::STRUTF8 ( const char *  rhs  ) 

Construct from null-terminated char* string.

STRUTF8::STRUTF8 ( const MISTRING rhs  ) 

Construct from MISTRING.

STRUTF8::~STRUTF8 (  ) 

Destructor.


Member Function Documentation

void STRUTF8::Attach ( unsigned char *&  str  ) 

Attach to unsigned char* string.

void STRUTF8::Attach ( char *&  str  ) 

Attach to char* string.

void STRUTF8::Clear (  ) 

Clear to empty string.

const UINT8* STRUTF8::GetUINT8 (  )  const

Get UINT8 pointer to actual UTF8 buffer.

bool STRUTF8::IsEmpty (  )  const

Determine if string is empty.

Returns:
true if empty, false if not. GENERATING_DOXYGEN_OUTPUT
STRUTF8::operator const char * (  )  const

Cast to null-terminated char* string.

STRUTF8& STRUTF8::operator= ( const MISTRING rhs  ) 

Assign from MISTRING.

STRUTF8& STRUTF8::operator= ( const unsigned char *  rhs  ) 

Assign from null-terminated unsigned char* string.

STRUTF8& STRUTF8::operator= ( const char *  rhs  ) 

Assign from null-terminated char* string.

STRUTF8& STRUTF8::operator= ( const STRUTF8 rhs  ) 

Assignment from STRUTF8.


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

Generated on Sun Oct 7 21:33:52 2012 for TNTsdk 2012 by  doxygen 1.6.1