Archon::Utilities::Unicode Namespace Reference


Functions

string encodeUtf8 (ustring)
 Illegal Unicode charcters will be converted to a '?'.
ustring decodeUtf8 (string s)
 Illegal UTF8 sequences will be converted to a '?'.
int decodeUtf8 (const char *in, int inSize, uchar *out, int &outSize)
 Incremental decoding.


Function Documentation

int Archon::Utilities::Unicode::decodeUtf8 const char *  in,
int  inSize,
uchar *  out,
int &  outSize
 

Incremental decoding.

Parameters:
in UTF8 encoded input characters.
inSize Number of available input characters.
out Target buffer for decoded Unicode characters.
outSize Upon entry, number of Unicode characters that will fit in the target buffer. Upon exit number of Unicode characters that were generated.
Returns:
Number of input characters that were consumed.

Definition at line 117 of file unicode.C.

References n.

ustring Archon::Utilities::Unicode::decodeUtf8 string  s  ) 
 

Illegal UTF8 sequences will be converted to a '?'.

An un-ended UTF8 sequence at the end of 's' will be converted to a '?'.

Definition at line 76 of file unicode.C.

References n.

Referenced by Archon::Utilities::Text::escapeNonprintable(), Archon::Utilities::Stream::Utf8FileReader::read(), Archon::Utilities::Stream::Utf8StreamReader::read(), Archon::Utilities::Regex::Regex(), and Archon::Utilities::Regex::str().


Generated on Sun Jul 30 22:58:19 2006 for Archon by  doxygen 1.4.4