Searched refs:gbkcode (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | UTF-8%zh_CN.gbk.c | 53 int unicode_to_gbk(int unidx, unsigned long gbkcode, char* buf, size_t buflen, int *uconv_num); 97 unsigned long gbkcode; in _icv_iconv() local 141 n = get_gbk_by_unicode(unichr, &unidx, &gbkcode); in _icv_iconv() 147 n = unicode_to_gbk(unidx, gbkcode, *outbuf, *outbytesleft, &uconv_num_internal); in _icv_iconv() 201 unsigned long gbkcode; in _icv_iconv() local 309 n = get_gbk_by_unicode(unichr, &unidx, &gbkcode); in _icv_iconv() 320 n = unicode_to_gbk(unidx, gbkcode, *outbuf, *outbytesleft, &uconv_num_internal); in _icv_iconv() 452 int get_gbk_by_unicode(unsigned long unicode, int* unidx, unsigned long* gbkcode) in get_gbk_by_unicode() argument 458 *gbkcode = unicode_gbk_tab[*unidx].value; in get_gbk_by_unicode() 462 fprintf(stderr, "Unicode=%04x, idx=%5d, Big-5=%x ", unicode, *unidx, *gbkcode); in get_gbk_by_unicode() [all …]
|
H A D | zh_CN.gbk%zh_CN.iso2022-CN.c | 78 int binsearch_gbk_big5(unsigned int gbkcode); 517 unsigned int gbkcode = \ in isBIG5Char() local 523 if (gbkcode < gbk_big5_tab[0].key || \ in isBIG5Char() 524 gbkcode > gbk_big5_tab[BIG5MAX-1].key) { in isBIG5Char() 527 idx = binsearch_gbk_big5(gbkcode); in isBIG5Char() 656 long gbkcode = (long)(c & 0xFFFF); in binsearch_gbk_big5() local 662 if (gbkcode < gbk_big5_tab[mid].key) in binsearch_gbk_big5() 664 else if (gbkcode > gbk_big5_tab[mid].key) in binsearch_gbk_big5()
|
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_sc.c | 805 uint32_t gbkcode; in utf8_to_gb18030() local 814 gbkcode = ((u32 / 12600 + 0x90) << 24) | in utf8_to_gb18030() 822 gbkcode = kiconv_utf8_gb18030[index].value; in utf8_to_gb18030() 823 KICONV_SC_GET_GB_LEN(gbkcode, gbklen); in utf8_to_gb18030() 835 *ob++ = (uchar_t)(gbkcode >> 8); in utf8_to_gb18030() 837 *ob++ = (uchar_t)(gbkcode >> 24); in utf8_to_gb18030() 838 *ob++ = (uchar_t)(gbkcode >> 16); in utf8_to_gb18030() 839 *ob++ = (uchar_t)(gbkcode >> 8); in utf8_to_gb18030() 841 *ob = (uchar_t)(gbkcode & 0xFF); in utf8_to_gb18030() 858 uint32_t gbkcode; in utf8_to_gbk() local [all …]
|