Lines Matching refs:charset_t
79 static char* read_charsets_from_env(charset_t ch)
106 static const char *charset_name(charset_t ch)
173 static struct charset_functions* get_charset_functions (charset_t ch)
194 charset_t add_charset(const char* name)
196 static charset_t max_charset_t = NUM_CHARSETS-1;
197 charset_t cur_charset_t = max_charset_t+1;
210 return (charset_t) -1;
220 return (charset_t) -1;
228 return (charset_t) -1;
231 /* register the new charset_t name */
255 const char *name = charset_name((charset_t)c1);
280 static size_t add_null(charset_t to, char *buf, size_t bytesleft, size_t len)
308 static size_t convert_string_internal(charset_t from, charset_t to,
362 size_t convert_string(charset_t from, charset_t to,
414 static size_t convert_string_allocate_internal(charset_t from, charset_t to,
499 size_t convert_string_allocate(charset_t from, charset_t to,
541 size_t charset_strupper(charset_t ch, const char *src, size_t srclen, char *dest, size_t destlen)
562 size_t charset_strlower(charset_t ch, const char *src, size_t srclen, char *dest, size_t destlen)
605 * Copy a string from a charset_t char* src to a UCS2 destination, allocating a buffer
613 size_t charset_to_ucs2_allocate(charset_t ch, ucs2_t **dest, const char *src)
622 * Copy a string from a charset_t char* src to a UTF-8 destination, allocating a buffer
629 size_t charset_to_utf8_allocate(charset_t ch, char **dest, const char *src)
645 size_t ucs2_to_charset(charset_t ch, const ucs2_t *src, char *dest, size_t destlen)
652 size_t ucs2_to_charset_allocate(charset_t ch, char **dest, const ucs2_t *src)
667 size_t utf8_to_charset_allocate(charset_t ch, char **dest, const char *src)
674 size_t charset_precompose ( charset_t ch, char * src, size_t inlen, char * dst, size_t outlen)
700 size_t charset_decompose ( charset_t ch, char * src, size_t inlen, char * dst, size_t outlen)
771 static size_t pull_charset_flags (charset_t from_set, charset_t cap_set, const char *src, size_t srclen, char* dest, size_t destlen, u_int16_t *flags)
883 static size_t push_charset_flags (charset_t to_set, charset_t cap_set, char* src, size_t srclen, char* dest, size_t destlen, u_int16_t *flags)
1032 size_t convert_charset ( charset_t from_set, charset_t to_set, charset_t cap_charset, const char *src, size_t src_len, char *dest, size_t dest_len, u_int16_t *flags)