50 #define isutf(c) (((c)&0xC0)!=0x80) int switch_u8_escape_wchar(char *buf, int sz, uint32_t ch)
void switch_u8_inc(char *s, int *i)
int switch_u8_charnum(char *s, int offset)
int switch_u8_read_escape_sequence(char *src, uint32_t *dest)
int switch_u8_offset(char *str, int charnum)
int switch_u8_unescape(char *buf, int sz, char *src)
int switch_u8_seqlen(char *s)
int switch_u8_escape(char *buf, int sz, char *src, int escape_quotes)
uint32_t switch_u8_nextchar(char *s, int *i)
switch_byte_t switch_byte_t * buf
char * switch_u8_memchr(char *s, uint32_t ch, size_t sz, int *charn)
void switch_u8_dec(char *s, int *i)
int switch_u8_toutf8(char *dest, int sz, uint32_t *src, int srcsz)
char * switch_u8_strchr(char *s, uint32_t ch, int *charn)
int switch_u8_is_locale_utf8(char *locale)
uint32_t switch_u8_get_char(char *s, int *i)
int switch_u8_toucs(uint32_t *dest, int sz, char *src, int srcsz)
int switch_u8_strlen(char *s)
int switch_u8_wc_toutf8(char *dest, uint32_t ch)