Unicode¶
-
size_t
UnicodeLength(const unsigned char * str)¶ Returns length of unicode string.
-
char*
DecodeUnicodeString(const unsigned char * src)¶ Converts string to locale charset.
- Return
- Pointer to static string.
-
char*
DecodeUnicodeConsole(const unsigned char * src)¶ Converts string to console charset.
- Return
- 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, int 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, int len)¶ Decodes UTF-8 quoted printable string.
-
int
EncodeWithUTF8Alphabet(unsigned long src, unsigned char * ret)¶ Encodes string to UTF-8.
-
int
DecodeWithUTF8Alphabet(const unsigned char * src, wchar_t * dest, int len)¶ Decodes string from UTF-8.
-
void
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.
-
gboolean
mywstrncmp(unsigned const char * a, unsigned const char * b, int num)¶ Compares two unicode strings.
-
unsigned char*
mywstrstr(unsigned const char * haystack, unsigned const char * needle)¶ Locates unicode substring.
-
gboolean
mywstrncasecmp(unsigned const char * a, unsigned const char * b, int num)¶ Compares two unicode strings case insensitive.
-
void
DecodeUTF8(unsigned char * dest, const char * src, int len)¶ Decode text from UTF-8.
-
gboolean
DecodeHexBin(unsigned char * dest, const unsigned char * src, int len)¶ Decode hex encoded binary text.
-
int
EncodeWithUnicodeAlphabet(const unsigned char * value, wchar_t * dest)¶ Converts single character from unicode to wchar_t.
-
int
DecodeWithUnicodeAlphabet(wchar_t value, unsigned char * dest)¶ Converts single character from wchar_t to unicode.