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, 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.

Warning

doxygenfunction: Cannot find function “DecodeWithUTF8Alphabet” in doxygen xml output for project “api” from directory: /home/docbuilder/gammu/build-configure/gammu-doc/xml

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.

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.

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.

Warning

doxygenfunction: Cannot find function “EncodeWithUnicodeAlphabet” in doxygen xml output for project “api” from directory: /home/docbuilder/gammu/build-configure/gammu-doc/xml

Warning

doxygenfunction: Cannot find function “DecodeWithUnicodeAlphabet” in doxygen xml output for project “api” from directory: /home/docbuilder/gammu/build-configure/gammu-doc/xml