/titanic_50/usr/src/lib/iconv_modules/zh/common/ |
H A D | zh_TW-euc%zh_TW-iso2022-7.c | 65 int plane_no; member 136 int plane_no = -1, n; in _icv_iconv() local 166 st->cstate, st->istate, st->_errno, plane_no); in _icv_iconv() 197 plane_no = get_plane_no_by_char(**inbuf); in _icv_iconv() 198 if (plane_no == -1) { /* illegal plane */ in _icv_iconv() 211 plane_no = 1; in _icv_iconv() 242 if ((st->istate == IN) || (pre_plane_no != plane_no)) { in _icv_iconv() 249 fprintf(stderr, "(plane #=%d\tpre_plane #=%d)\t", plane_no, pre_plane_no); in _icv_iconv() 256 pre_plane_no = plane_no; in _icv_iconv() 261 *(*outbuf+3) = GET_PLANEC(plane_no); in _icv_iconv() [all …]
|
H A D | zh_TW-iso2022-CN-EXT%zh_TW-euc.c | 54 chinese_to_euc( _iconv_st *st, unsigned char **outbuf, size_t *outbytesleft, int plane_no ) in chinese_to_euc() argument 61 if ( plane_no < 0 )/* Not a CNS character */ in chinese_to_euc() 64 if ( plane_no >= 2) { in chinese_to_euc() 71 *(*outbuf)++ = (unsigned char) (PMASK + plane_no); in chinese_to_euc() 89 int plane_no, ret; /* return buffer size */ in make_cns() local 108 plane_no = ret - 0x20; in make_cns() 111 plane_no = 3; /* CNS 11643-1992 */ in make_cns() 118 if ( plane_no >= 2) { in make_cns() 125 *(*outbuf)++ = (unsigned char) (PMASK + plane_no); in make_cns()
|
H A D | zh_TW-big5%zh_TW-iso2022-7.c | 131 int plane_no, n, unidx; in _icv_iconv() local 151 st->cstate, st->istate, st->_errno, plane_no); in _icv_iconv() 188 plane_no = get_plane_no_by_big5(st->keepc[0], in _icv_iconv() 190 if (plane_no < 0) { /* legal Big-5; illegal CNS */ in _icv_iconv() 197 if ((st->istate == IN) || (pre_plane_no != plane_no)) { in _icv_iconv() 204 fprintf(stderr, "(plane #=%d\tpre_plane #=%d)\t", plane_no, pre_plane_no); in _icv_iconv() 211 pre_plane_no = plane_no; in _icv_iconv() 216 *(*outbuf+3) = GET_PLANEC(plane_no); in _icv_iconv() 231 n = big5_to_iso(plane_no, unidx, cnscode, in _icv_iconv() 341 static int big5_to_iso(int plane_no, int unidx, unsigned long cnscode, in big5_to_iso() argument [all …]
|
H A D | UTF-8%zh_TW-iso2022-7.c | 135 int plane_no, n, unidx; in _icv_iconv() local 156 st->cstate, st->istate, st->_errno, plane_no); in _icv_iconv() 255 plane_no = get_plane_no_by_utf(c1, c2, &unidx, &cnscode); in _icv_iconv() 256 if (plane_no == -2) in _icv_iconv() 262 if (plane_no > 0) { /* legal unicode; illegal CNS */ in _icv_iconv() 263 if ((st->istate == IN) || (pre_plane_no != plane_no)) { in _icv_iconv() 265 (pre_plane_no != plane_no)) { in _icv_iconv() 276 pre_plane_no = plane_no; in _icv_iconv() 281 *(*outbuf+3) = GET_PLANEC(plane_no); in _icv_iconv() 299 n = utf8_to_iso(plane_no, unidx, cnscode, in _icv_iconv() [all …]
|
H A D | zh_TW-euc%zh_TW-iso2022-CN-EXT.c | 52 short plane_no; /* plane no */ member 82 st->plane_no = -1; in _icv_open() 160 st->plane_no = -1; in _icv_iconv() 170 st->cstate, st->istate, st->_errno, st->plane_no); in _icv_iconv() 203 st->plane_no = get_plane_no_by_char(**inbuf); in _icv_iconv() 204 if (st->plane_no == -1) { /* illegal plane */ in _icv_iconv() 216 st->plane_no = 1; in _icv_iconv() 246 if (st->plane_no == 1) { in _icv_iconv() 261 } else if (st->plane_no == 2) { in _icv_iconv() 270 if (st->SS3char != GET_PLANEC(st->plane_no)) { in _icv_iconv() [all …]
|
H A D | zh_TW-iso2022-7%zh_TW-big5.c | 53 int plane_no; /* plane number for Chinese character */ member 79 st->plane_no = 0; in _icv_open() 188 st->plane_no = get_plane_no_by_iso(**inbuf); in _icv_iconv() 189 if (st->plane_no > 0 ) { /* plane #1 - #16 */ in _icv_iconv() 231 if (st->plane_no == 1) { in _icv_iconv() 237 st->plane_no); in _icv_iconv() 258 n = iso_to_big5(st->plane_no, st->keepc, *outbuf, in _icv_iconv() 339 static int iso_to_big5(int plane_no, char keepc[], char *buf, size_t buflen) in iso_to_big5() argument 347 fprintf(stderr, "%s %d ", keepc, plane_no); in iso_to_big5() 349 if (plane_no == 1) { in iso_to_big5() [all …]
|
H A D | zh_TW-euc%UTF-8.c | 122 int plane_no = 0, n; in _icv_iconv() local 185 plane_no = get_plane_no_by_char(**inbuf); in _icv_iconv() 186 if (plane_no == -1) { /* illegal plane */ in _icv_iconv() 230 n = cns_to_utf8(plane_no, st, *outbuf, in _icv_iconv() 322 static int cns_to_utf8(int plane_no, _iconv_st *st, char *buf, size_t buflen, int *uconv_num) in cns_to_utf8() argument 331 fprintf(stderr, "%s %d ", keepc, plane_no); in cns_to_utf8() 333 if (plane_no == 1) { in cns_to_utf8() 345 switch (plane_no) { in cns_to_utf8() 385 uni_val = getUnicodeFromUDA(plane_no, (uchar_t)keepc[2], (uchar_t)keepc[3]); in cns_to_utf8() 500 getUnicodeFromUDA(int plane_no, uchar_t byte1, uchar_t byte2) in getUnicodeFromUDA() argument [all …]
|
H A D | zh_TW-iso2022-7%UTF-8.c | 56 int plane_no; /* plane number for Chinese character */ member 82 st->plane_no = 0; in _icv_open() 188 st->plane_no = get_plane_no_by_iso(**inbuf); in _icv_iconv() 189 if (st->plane_no > 0 ) { /* plane #1 - #16 */ in _icv_iconv() 231 if (st->plane_no == 1) { in _icv_iconv() 237 st->plane_no); in _icv_iconv() 259 n = iso_to_utf8(st->plane_no, st->keepc, *outbuf, in _icv_iconv() 342 static int iso_to_utf8(int plane_no, char keepc[], char *buf, size_t buflen) in iso_to_utf8() argument 350 fprintf(stderr, "%s %d ", keepc, plane_no); in iso_to_utf8() 352 if (plane_no == 1) { in iso_to_utf8() [all …]
|
H A D | zh_TW-iso2022-CN-EXT.c | 385 int plane_no = -1; in iscns() local 388 plane_no = 1; in iscns() 390 plane_no = 2; in iscns() 393 case 'I': plane_no = 3; break; in iscns() 394 case 'J': plane_no = 4; break; in iscns() 395 case 'K': plane_no = 5; break; in iscns() 396 case 'L': plane_no = 6; break; in iscns() 397 case 'M': plane_no = 7; break; in iscns() 399 return (plane_no); in iscns()
|
H A D | zh_TW-euc%zh_TW-big5.c | 112 int plane_no = -1, n; in _icv_iconv() local 146 plane_no = get_plane_no_by_char(**inbuf); in _icv_iconv() 147 if (plane_no == -1) { /* illegal plane */ in _icv_iconv() 185 n = cns_to_big5(plane_no, st->keepc, *outbuf, in _icv_iconv() 266 static int cns_to_big5(int plane_no, char keepc[], char *buf, size_t buflen) in cns_to_big5() argument 274 fprintf(stderr, "%s %d ", keepc, plane_no); in cns_to_big5() 281 if (plane_no == 1) { in cns_to_big5() 293 switch (plane_no) { in cns_to_big5()
|
H A D | zh_TW-big5%zh_TW-euc.c | 116 int plane_no, n, unidx; in _icv_iconv() local 152 plane_no = get_plane_no_by_big5(st->keepc[0], in _icv_iconv() 161 n = big5_to_cns(plane_no, unidx, cnscode, in _icv_iconv() 281 static int big5_to_cns(int plane_no, int unidx, unsigned long cnscode, in big5_to_cns() argument 298 switch (plane_no) { in big5_to_cns() 323 *(unsigned char*)(buf+1) = cns_str[1] = PMASK + plane_no; in big5_to_cns() 332 fprintf(stderr, "\t#%d ->%s<-\n", plane_no, cns_str); in big5_to_cns()
|
H A D | zh_TW-iso2022-7%zh_TW-euc.c | 54 int plane_no; /* plane number for Chinese character */ member 143 st->plane_no = 0; in _icv_open() 252 st->plane_no = get_plane_no_by_iso(**inbuf); in _icv_iconv() 253 if (st->plane_no > 0 ) { /* plane #1 - #16 */ in _icv_iconv() 295 if (st->plane_no == 1) { in _icv_iconv() 301 st->plane_no); in _icv_iconv() 322 n = iso_to_cns(st->plane_no, st->keepc, *outbuf, in _icv_iconv() 403 static int iso_to_cns(int plane_no, char keepc[], char *buf, size_t buflen) in iso_to_cns() argument 408 fprintf(stderr, "%s %d ", keepc, plane_no); in iso_to_cns() 410 if (plane_no == 1) in iso_to_cns() [all …]
|
H A D | zh_TW-iso2022-CN-EXT%zh_TW-big5.c | 59 chinese_to_big5( _iconv_st *st, unsigned char **outbuf, size_t *outbytesleft, int plane_no ) in chinese_to_big5() argument 67 if ( plane_no < 0 || plane_no > 2 )/* Not a big5 */ in chinese_to_big5() 71 if (plane_no == 1) in chinese_to_big5()
|
H A D | UTF-8%zh_TW-euc.c | 125 int plane_no, n, unidx; in _icv_iconv() local 264 plane_no = get_plane_no_by_utf(ucs, &unidx, &cnscode); in _icv_iconv() 273 n = utf8_to_cns(plane_no, unidx, cnscode, in _icv_iconv() 463 static int utf8_to_cns(int plane_no, int unidx, unsigned long cnscode, in utf8_to_cns() argument 484 switch (plane_no) { in utf8_to_cns() 509 *(buf+1) = cns_str[1] = PMASK + plane_no; in utf8_to_cns() 518 fprintf(stderr, "\t#%d ->%s<-\n", plane_no, cns_str); in utf8_to_cns()
|
/titanic_50/usr/src/uts/common/kiconv/kiconv_tc/ |
H A D | kiconv_tc.c | 86 static int8_t euctw_to_utf8(size_t plane_no, uint32_t euctw_val, 88 static uint32_t get_unicode_from_UDA(size_t plane_no, uchar_t byte1, 376 size_t plane_no; in kiconv_fr_euctw() local 428 plane_no = isplane1 ? 1 : *(ib + 1) - KICONV_TC_EUCTW_PMASK; in kiconv_fr_euctw() 444 sz = euctw_to_utf8(plane_no, euctw_val, ob, obtail, &ret_val); in kiconv_fr_euctw() 475 size_t plane_no; in kiconvstr_fr_euctw() local 519 plane_no = isplane1 ? 1 : *(ib + 1) - KICONV_TC_EUCTW_PMASK; in kiconvstr_fr_euctw() 530 sz = euctw_to_utf8(plane_no, euctw_val, ob, obtail, &ret_val); in kiconvstr_fr_euctw() 703 get_unicode_from_UDA(size_t plane_no, uchar_t b1, uchar_t b2) in get_unicode_from_UDA() argument 709 if (plane_no == 16) in get_unicode_from_UDA() [all …]
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | kiconv_tc.h | 57 (plane_no <= 16 && plane_no >= 2 && \
|