|
RTS API Documentation
1.10.11
|
#include "switch_utf8.h"
Include dependency graph for switch_utf8.c:Go to the source code of this file.
Functions | |
| int | switch_u8_seqlen (char *s) |
| int | switch_u8_toucs (uint32_t *dest, int sz, char *src, int srcsz) |
| int | switch_u8_toutf8 (char *dest, int sz, uint32_t *src, int srcsz) |
| int | switch_u8_wc_toutf8 (char *dest, uint32_t ch) |
| int | switch_u8_offset (char *str, int charnum) |
| int | switch_u8_charnum (char *s, int offset) |
| int | switch_u8_strlen (char *s) |
| uint32_t | switch_u8_nextchar (char *s, int *i) |
| void | switch_u8_inc (char *s, int *i) |
| void | switch_u8_dec (char *s, int *i) |
| int | octal_digit (char c) |
| int | hex_digit (char c) |
| int | switch_u8_read_escape_sequence (char *str, uint32_t *dest) |
| int | switch_u8_unescape (char *buf, int sz, char *src) |
| int | switch_u8_escape_wchar (char *buf, int sz, uint32_t ch) |
| int | switch_u8_escape (char *buf, int sz, char *src, int escape_quotes) |
| char * | switch_u8_strchr (char *s, uint32_t ch, int *charn) |
| char * | switch_u8_memchr (char *s, uint32_t ch, size_t sz, int *charn) |
| int | switch_u8_is_locale_utf8 (char *locale) |
| uint32_t | switch_u8_get_char (char *s, int *i) |
Variables | |
| static const uint32_t | offsetsFromUTF8 [6] |
| static const char | trailingBytesForUTF8 [256] |
| int hex_digit | ( | char | c | ) |
Definition at line 264 of file switch_utf8.c.
Referenced by switch_u8_read_escape_sequence().
| int octal_digit | ( | char | c | ) |
Definition at line 259 of file switch_utf8.c.
Referenced by switch_u8_read_escape_sequence().
| int switch_u8_charnum | ( | char * | s, |
| int | offset | ||
| ) |
| void switch_u8_dec | ( | char * | s, |
| int * | i | ||
| ) |
| int switch_u8_escape | ( | char * | buf, |
| int | sz, | ||
| char * | src, | ||
| int | escape_quotes | ||
| ) |
Definition at line 385 of file switch_utf8.c.
References switch_u8_escape_wchar(), and switch_u8_nextchar().
| int switch_u8_escape_wchar | ( | char * | buf, |
| int | sz, | ||
| uint32_t | ch | ||
| ) |
| uint32_t switch_u8_get_char | ( | char * | s, |
| int * | i | ||
| ) |
Definition at line 469 of file switch_utf8.c.
References isutf, and offsetsFromUTF8.
Referenced by switch_img_txt_handle_render().
| void switch_u8_inc | ( | char * | s, |
| int * | i | ||
| ) |
| int switch_u8_is_locale_utf8 | ( | char * | locale | ) |
Definition at line 447 of file switch_utf8.c.
| char* switch_u8_memchr | ( | char * | s, |
| uint32_t | ch, | ||
| size_t | sz, | ||
| int * | charn | ||
| ) |
| uint32_t switch_u8_nextchar | ( | char * | s, |
| int * | i | ||
| ) |
Definition at line 232 of file switch_utf8.c.
References isutf, and offsetsFromUTF8.
Referenced by switch_u8_escape(), switch_u8_strchr(), and switch_u8_strlen().
| int switch_u8_offset | ( | char * | str, |
| int | charnum | ||
| ) |
| int switch_u8_read_escape_sequence | ( | char * | str, |
| uint32_t * | dest | ||
| ) |
Definition at line 273 of file switch_utf8.c.
References hex_digit(), and octal_digit().
Referenced by switch_u8_unescape().
| int switch_u8_seqlen | ( | char * | s | ) |
| char* switch_u8_strchr | ( | char * | s, |
| uint32_t | ch, | ||
| int * | charn | ||
| ) |
| int switch_u8_strlen | ( | char * | s | ) |
| int switch_u8_toucs | ( | uint32_t * | dest, |
| int | sz, | ||
| char * | src, | ||
| int | srcsz | ||
| ) |
| int switch_u8_toutf8 | ( | char * | dest, |
| int | sz, | ||
| uint32_t * | src, | ||
| int | srcsz | ||
| ) |
Definition at line 125 of file switch_utf8.c.
| int switch_u8_unescape | ( | char * | buf, |
| int | sz, | ||
| char * | src | ||
| ) |
Definition at line 330 of file switch_utf8.c.
References switch_u8_read_escape_sequence(), and switch_u8_wc_toutf8().
| int switch_u8_wc_toutf8 | ( | char * | dest, |
| uint32_t | ch | ||
| ) |
|
static |
Definition at line 48 of file switch_utf8.c.
Referenced by switch_u8_get_char(), switch_u8_memchr(), switch_u8_nextchar(), and switch_u8_toucs().
|
static |
Definition at line 53 of file switch_utf8.c.
Referenced by switch_u8_seqlen(), and switch_u8_toucs().
1.8.13