|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
| struct | WsUtf8StringRec |
Typedefs | |
| typedef struct WsUtf8StringRec | WsUtf8String |
Functions | |
| WsUtf8String * | ws_utf8_alloc (void) |
| void | ws_utf8_free (WsUtf8String *string) |
| int | ws_utf8_append_char (WsUtf8String *string, unsigned long ch) |
| int | ws_utf8_verify (const unsigned char *data, size_t len, size_t *strlen_return) |
| int | ws_utf8_set_data (WsUtf8String *string, const unsigned char *data, size_t len) |
| int | ws_utf8_get_char (const WsUtf8String *string, unsigned long *ch_return, size_t *posp) |
| unsigned char * | ws_utf8_to_latin1 (const WsUtf8String *string, unsigned char unknown_char, size_t *len_return) |
| void | ws_utf8_free_data (unsigned char *data) |
| typedef struct WsUtf8StringRec WsUtf8String |
| WsUtf8String* ws_utf8_alloc | ( | void | ) |
Definition at line 182 of file wsutf8.c.
References ws_calloc().
Referenced by ws_bc_encode(), and ws_yy_lex().
| int ws_utf8_append_char | ( | WsUtf8String * | string, |
| unsigned long | ch | ||
| ) |
Definition at line 198 of file wsutf8.c.
References WsUtf8StringRec::data, WsUtf8StringRec::len, utf8_hibits, ws_fatal(), ws_realloc(), WS_UTF8_CONT_DATA_MASK, WS_UTF8_ENC_C_BITS, and WS_UTF8_ENC_TYPE.
Referenced by ws_yy_lex().
| void ws_utf8_free | ( | WsUtf8String * | string | ) |
Definition at line 188 of file wsutf8.c.
References WsUtf8StringRec::data, and ws_free().
Referenced by ws_bc_encode(), and ws_yy_lex().
| void ws_utf8_free_data | ( | unsigned char * | data | ) |
Definition at line 368 of file wsutf8.c.
References ws_free().
Referenced by pragma_meta(), and ws_bc_encode().
| int ws_utf8_get_char | ( | const WsUtf8String * | string, |
| unsigned long * | ch_return, | ||
| size_t * | posp | ||
| ) |
Definition at line 293 of file wsutf8.c.
References WsUtf8StringRec::len, utf8_hidata_masks, WS_UTF8_CONT_DATA_MASK, and WS_UTF8_DEC_TYPE.
Referenced by main(), and ws_utf8_to_latin1().
| int ws_utf8_set_data | ( | WsUtf8String * | string, |
| const unsigned char * | data, | ||
| size_t | len | ||
| ) |
Definition at line 266 of file wsutf8.c.
References WsUtf8StringRec::data, ws_free(), ws_memdup(), and ws_utf8_verify().
Referenced by ws_bc_encode().
| unsigned char* ws_utf8_to_latin1 | ( | const WsUtf8String * | string, |
| unsigned char | unknown_char, | ||
| size_t * | len_return | ||
| ) |
Definition at line 332 of file wsutf8.c.
References WsUtf8StringRec::num_chars, ws_fatal(), ws_malloc(), and ws_utf8_get_char().
Referenced by pragma_meta(), and ws_bc_encode().
| int ws_utf8_verify | ( | const unsigned char * | data, |
| size_t | len, | ||
| size_t * | strlen_return | ||
| ) |
Definition at line 233 of file wsutf8.c.
References WS_UTF8_DEC_C_P, and WS_UTF8_DEC_TYPE.
Referenced by ws_bc_decode(), and ws_utf8_set_data().