46 # define u_int32_t uint32_t 57 #define UTF8XX_MAXBYTES 4 58 #define UTF8XX_MAXBYTES1 5 67 #define isutf(c) (((c)&0xC0)!=0x80) 147 int u8_read_escape_sequence(
char *src,
u_int32_t *dest);
151 int u8_escape_wchar(
char *buf,
int sz,
u_int32_t ch);
154 int u8_unescape(
char *buf,
int sz,
char *src);
159 int u8_escape(
char *buf,
int sz,
char *src,
int escape_quotes);
167 char *u8_strchr(
char *s,
u_int32_t ch,
int *charn);
171 char *u8_memchr(
char *s,
u_int32_t ch,
size_t sz,
int *charn);
173 int u8_is_locale_utf8(
char *locale);
178 int u8_vprintf(
char *fmt, va_list ap);
179 int u8_printf(
char *fmt, ...);
size_t u8_wc_len(ucs4 ch)
Definition: CommonLib/utf8xx.cpp:156
int hex_digit(char c)
Definition: CommonLib/utf8xx.cpp:293
size_t u8_ws_len(const ucs4str &src)
Definition: CommonLib/utf8xx.cpp:166
int u8_seqlen(const utf8str &s, size_t i)
Definition: CommonLib/utf8xx.cpp:68
size_t u8_charnum(const utf8str &s, int offset)
Definition: CommonLib/utf8xx.cpp:223
uint32_t ucs4
Definition: utf8xx.h:50
ucs4 u8_nextcharn(const utf8str &s, size_t slen, size_t *i)
Definition: CommonLib/utf8xx.cpp:252
void u8_inc(const utf8str &s, size_t *i)
Definition: CommonLib/utf8xx.cpp:276
size_t u8_offset(const utf8str &s, int charnum)
Definition: CommonLib/utf8xx.cpp:211
ucs4 u8_nextchar(const utf8str &s, size_t *i)
Definition: CommonLib/utf8xx.cpp:236
int octal_digit(char c)
Definition: CommonLib/utf8xx.cpp:288
std::string utf8str
Definition: utf8xx.h:73
#define u_int32_t
Definition: utf8xx.h:46
std::vector< ucs4 > ucs4str
Definition: utf8xx.h:70
void u8_dec(const utf8str &s, size_t *i)
Definition: CommonLib/utf8xx.cpp:282
size_t u8_strlen(const utf8str &s)
Definition: CommonLib/utf8xx.cpp:268
unsigned char uchar
Definition: utf8xx.h:54
size_t u8_toutf8(utf8str &dst, const ucs4str &src)
Definition: CommonLib/utf8xx.cpp:120
size_t u8_wc_toutf8(utf8str &dst, ucs4 ch)
Definition: CommonLib/utf8xx.cpp:175
size_t u8_toucs(ucs4str &dst, const utf8str &src)
Definition: CommonLib/utf8xx.cpp:83