Unicode

size_t UnicodeLength(const unsigned char *str)

Returns length of unicode string.

char *DecodeUnicodeString(const unsigned char *src)

Converts string to locale charset.

Returns:

Pointer to static string.

char *DecodeUnicodeConsole(const unsigned char *src)

Converts string to console charset.

Returns:

Pointer to static string.

void DecodeUnicode(const unsigned char *src, char *dest)

Converts string from unicode to local charset.

void EncodeUnicode(unsigned char *dest, const char *src, size_t len)

Encodes string from local charset to unicode.

void ReadUnicodeFile(unsigned char *Dest, const unsigned char *Source)

Decodes unicode file data with byte order mark (BOM).

void CopyUnicodeString(unsigned char *Dest, const unsigned char *Source)

Copies unicode string.

gboolean EncodeUTF8QuotedPrintable(char *dest, const unsigned char *src)

Encodes string to UTF-8 quoted printable.

void DecodeUTF8QuotedPrintable(unsigned char *dest, const char *src, size_t len)

Decodes UTF-8 quoted printable string.

int EncodeWithUTF8Alphabet(unsigned long src, unsigned char *ret)

Encodes string to UTF-8.

gboolean DecodeHexUnicode(unsigned char *dest, const char *src, size_t len)

Decodes string from hex quoted unicode.

void EncodeHexUnicode(char *dest, const unsigned char *src, size_t len)

Encodes string to hex quoted unicode.

Warning

doxygenfunction: Unable to resolve function “mywstrncmp” with arguments “None”. Candidate function could not be parsed. Parsing error is Error when parsing function declaration. If the function has no return type: Error in declarator or parameters-and-qualifiers Invalid C++ declaration: Expecting “(” in parameters-and-qualifiers. [error at 9] gboolean mywstrncmp (unsigned const char *a, unsigned const char *b, int num) ———^ If the function has a return type: Error in declarator or parameters-and-qualifiers If pointer to member declarator: Invalid C++ declaration: Expected ‘::’ in pointer to member (function). [error at 20] gboolean mywstrncmp (unsigned const char *a, unsigned const char *b, int num) ——————–^ If declarator-id: Invalid C++ declaration: Expecting “,” or “)” in parameters-and-qualifiers, got “*”. [error at 41] gboolean mywstrncmp (unsigned const char *a, unsigned const char *b, int num) —————————————–^

Warning

doxygenfunction: Unable to resolve function “mywstrstr” with arguments “None”. Candidate function could not be parsed. Parsing error is Error when parsing function declaration. If the function has no return type: Error in declarator or parameters-and-qualifiers Invalid C++ declaration: Expected identifier in nested name, got keyword: unsigned [error at 8] unsigned char * mywstrstr (unsigned const char *haystack, unsigned const char *needle) ——–^ If the function has a return type: Error in declarator or parameters-and-qualifiers If pointer to member declarator: Invalid C++ declaration: Expected ‘::’ in pointer to member (function). [error at 26] unsigned char * mywstrstr (unsigned const char *haystack, unsigned const char *needle) ————————–^ If declarator-id: Invalid C++ declaration: Expecting “,” or “)” in parameters-and-qualifiers, got “*”. [error at 47] unsigned char * mywstrstr (unsigned const char *haystack, unsigned const char *needle) ———————————————–^

Warning

doxygenfunction: Unable to resolve function “mywstrncasecmp” with arguments “None”. Candidate function could not be parsed. Parsing error is Error when parsing function declaration. If the function has no return type: Error in declarator or parameters-and-qualifiers Invalid C++ declaration: Expecting “(” in parameters-and-qualifiers. [error at 9] gboolean mywstrncasecmp (unsigned const char *a, unsigned const char *b, int num) ———^ If the function has a return type: Error in declarator or parameters-and-qualifiers If pointer to member declarator: Invalid C++ declaration: Expected ‘::’ in pointer to member (function). [error at 24] gboolean mywstrncasecmp (unsigned const char *a, unsigned const char *b, int num) ————————^ If declarator-id: Invalid C++ declaration: Expecting “,” or “)” in parameters-and-qualifiers, got “*”. [error at 45] gboolean mywstrncasecmp (unsigned const char *a, unsigned const char *b, int num) ———————————————^

gboolean EncodeUTF8(char *dest, const unsigned char *src)

Encode text to UTF-8.

void DecodeUTF8(unsigned char *dest, const char *src, size_t len)

Decode text from UTF-8.

gboolean DecodeHexBin(unsigned char *dest, const unsigned char *src, size_t len)

Decode hex encoded binary text.