Home
last modified time | relevance | path

Searched refs:big5code (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A DUTF-8%zh_TW-big5.c122 unsigned long big5code; in _icv_iconv() local
254 n = get_big5_by_utf(ucs, &unidx, &big5code); in _icv_iconv()
269 n = utf8_to_big5(unidx, big5code, in _icv_iconv()
413 static int get_big5_by_utf(uint_t ucs, int *unidx, unsigned long *big5code) in get_big5_by_utf() argument
420 *big5code = utf_big5_tab[*unidx].big5code; in get_big5_by_utf()
424 fprintf(stderr, "Unicode=%04x, idx=%5d, Big-5=%x ", ucs, *unidx, *big5code); in get_big5_by_utf()
438 static int utf8_to_big5(int unidx, unsigned long big5code, char *buf, size_t buflen, int *uconv_num) in utf8_to_big5() argument
455 val = big5code & 0xffff; in utf8_to_big5()
H A Dzh_TW-big5%zh_TW-euc.c238 unsigned long big5code; in get_plane_no_by_big5() local
240 big5code = (unsigned long) ((c1 & ONEBYTE) << 8) + (c2 & ONEBYTE); in get_plane_no_by_big5()
241 *unidx = binsearch(big5code, big5_cns_tab, MAX_BIG5_NUM); in get_plane_no_by_big5()
247 fprintf(stderr, "Big-5=%04x, idx=%5d, CNS=%x ", big5code, *unidx, *cnscode); in get_plane_no_by_big5()
H A Dzh_TW-iso2022-CN-EXT%zh_TW-big5.c107 if ( ptr && ptr->big5code > 0 ) { in gb_to_big5()
112 *(*outbuf)++ = (unsigned char) ((ptr->big5code >> 8) & 0xff); in gb_to_big5()
113 *(*outbuf)++ = (unsigned char) (ptr->big5code & 0xff); in gb_to_big5()
H A Dzh_TW-big5%zh_TW-iso2022-7.c298 unsigned long big5code; in get_plane_no_by_big5() local
300 big5code = (unsigned long) ((c1 & ONEBYTE) << 8) + (c2 & ONEBYTE); in get_plane_no_by_big5()
301 *unidx = binsearch(big5code, big5_cns_tab, MAX_BIG5_NUM); in get_plane_no_by_big5()
307 fprintf(stderr, "Big-5=%04x, idx=%5d, CNS=%06x ", big5code, *unidx, *cnscode); in get_plane_no_by_big5()
H A Dzh_CN.gbk%zh_CN.iso2022-CN.c520 unsigned int big5code; in isBIG5Char() local
531 big5code = gbk_big5_tab[idx].value; in isBIG5Char()
532 st->keepc[0] = (unsigned char)((big5code >> 8) & ONEBYTE); in isBIG5Char()
533 st->keepc[1] = (unsigned char)(big5code & ONEBYTE); in isBIG5Char()
567 unsigned long big5code; in get_plane_no_by_big5() local
569 big5code = (unsigned long) ((st->keepc[0] & ONEBYTE) << 8) + \ in get_plane_no_by_big5()
571 *unidx = binsearch(big5code, big5_cns_tab, MAX_BIG5_NUM); in get_plane_no_by_big5()
H A Dzh_TW-big5%zh_TW-iso2022-CN-EXT.c342 unsigned long big5code; in hascns() local
344 big5code = (unsigned long) ((big5mbchar[0] & ONEBYTE) << 8) + in hascns()
347 idx = binsearch(big5code, big5_cns_tab, MAX_BIG5_NUM); in hascns()
H A Dbig5_unicode.h39 unsigned long big5code; member
H A Dzh_TW-big5%UTF-8.c434 if (x < v[mid].big5code) in binsearch()
436 else if (x > v[mid].big5code) in binsearch()
H A Dzh_CN.iso2022-CN%zh_CN.gbk.c72 int binsearch_big5_gbk(unsigned int big5code);
727 int binsearch_big5_gbk(unsigned int big5code) in binsearch_big5_gbk() argument
735 if (big5code < big5_gbk_tab[mid].key) in binsearch_big5_gbk()
737 else if (big5code > big5_gbk_tab[mid].key) in binsearch_big5_gbk()
H A Dzh_CN.iso2022-CN%zh_CN.euc.c62 int binsearch_big5_gb(unsigned int big5code);
709 int binsearch_big5_gb(unsigned int big5code) in binsearch_big5_gb() argument
717 if (big5code < big5_gb_tab[mid].key) in binsearch_big5_gb()
719 else if (big5code > big5_gb_tab[mid].key) in binsearch_big5_gb()
/illumos-gate/usr/src/lib/iconv_modules/inc/
H A Dgb2312_big5_TW.h29 long big5code; member
H A Dunicode_big5.h41 unsigned long big5code; member
/illumos-gate/usr/src/uts/common/kiconv/kiconv_tc/
H A Dkiconv_tc.c986 uint32_t big5code; in utf8_to_big5_common() local
989 big5code = table[index].value; in utf8_to_big5_common()
990 big5len = (big5code <= 0xFF) ? 1 : 2; in utf8_to_big5_common()
1001 *ob++ = (uchar_t)(big5code >> 8); in utf8_to_big5_common()
1002 *ob = (uchar_t)(big5code & 0xFF); in utf8_to_big5_common()