UTF-8 encoding codes the ISO 10646 (Unicode, UCS2 and UCS4) characters as variable length (1 - 6 bytes) strings of 8-bit characters.
#include <sofia-sip/su_types.h>
Include dependency graph for utf8.h:
Go to the source code of this file.
Typedefs | |
typedef unsigned char | utf8 |
Defined when <sofia-sip/utf8.h> has been included. | |
Functions | |
size_t | utf8_width (const utf8 *) |
Width of an UTF8 character cell (1, 2 or 4 bytes). | |
size_t | ucs18decode (char *dst, size_t dst_size, const utf8 *s) |
Convert UTF8 string s to ISO-Latin-1 string dst. | |
size_t | ucs1encode (utf8 *dst, const ucs1 *s, size_t n, const char quote[128]) |
Convert ISO-Latin-1 string s to UTF8 string in dst. | |
size_t | ucs1declen (const utf8 *s) |
Calculate number of characters in UTF8 string s. | |
size_t | ucs1enclen (const ucs1 *s, size_t n, const char quote[128]) |
Calculate length of UTF8 encoding of string s. |