Lines Matching refs:charset
183 struct charset { struct
190 int charset_mbtowc(struct charset *charset, int *pwc, const char *s, size_t n) in charset_mbtowc() argument
192 return (*charset->mbtowc)(charset->map, pwc, s, n); in charset_mbtowc()
195 int charset_wctomb(struct charset *charset, char *s, int wc) in charset_wctomb() argument
197 return (*charset->wctomb)(charset->map, s, wc); in charset_wctomb()
200 int charset_max(struct charset *charset) in charset_max() argument
202 return charset->max; in charset_max()
406 struct charset charset_utf8 = {
413 struct charset charset_iso1 = {
420 struct charset charset_ascii = {
427 struct charset *charset_find(const char *code) in charset_find()
449 if (!maps[i].charset) { in charset_find()
450 maps[i].charset = malloc(sizeof(struct charset)); in charset_find()
451 if (maps[i].charset) { in charset_find()
454 free(maps[i].charset); in charset_find()
455 maps[i].charset = 0; in charset_find()
458 maps[i].charset->max = 1; in charset_find()
459 maps[i].charset->mbtowc = &mbtowc_8bit; in charset_find()
460 maps[i].charset->wctomb = &wctomb_8bit; in charset_find()
461 maps[i].charset->map = map; in charset_find()
467 return maps[i].charset; in charset_find()
487 struct charset *charset1, *charset2; in charset_convert()