GUtf8Str Class Reference

Unicode string class. Allows traversing a utf-8 strings. More...

#include <GUtf8.h>

Inheritance diagram for GUtf8Str:

GUtf8Ptr

List of all members.

Public Member Functions

 GUtf8Str (char *utf, int bytes=-1, bool Copy=false)
 Constructor.
 GUtf8Str (char16 *wide, int chars=-1)
 Constructor.
GUtf8Stroperator= (char *s)
 Assign a new pointer to the string.
char16ToWide ()
 Allocates a block of memory containing the wide representation of the string.
bool Valid ()
bool IsStart ()
bool IsEnd ()


Detailed Description

Unicode string class. Allows traversing a utf-8 strings.

Constructor & Destructor Documentation

GUtf8Str::GUtf8Str ( char *  utf,
int  bytes = -1,
bool  Copy = false 
)

Constructor.

Parameters:
utf  The string pointer to start with
bytes  The number of bytes containing characters, or -1 if NULL terminated.
Copy  Copy the string first

GUtf8Str::GUtf8Str ( char16 wide,
int  chars = -1 
)

Constructor.

Parameters:
wide  The string pointer to start with. A utf-8 copy of the string will be created.
chars  The number of wide chars, or -1 if NULL terminated.


Member Function Documentation

bool GUtf8Str::IsEnd (  ) 

Returns:
true if at the end

bool GUtf8Str::IsStart (  ) 

Returns:
true if at the start

bool GUtf8Str::Valid (  ) 

Returns:
true if the class seems to be valid.


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

Generated on Wed Dec 1 15:41:05 2010 for Lgi by  doxygen 1.5.7.1