Home
last modified time | relevance | path

Searched refs:ic1 (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/lib/iconv_modules/ja/common/
H A DPCK_TO_Unicode.c69 unsigned char ic1, ic2; /* 1st and 2nd bytes of a char */ in _icv_iconv() local
92 NGET(ic1, "never fail here"); /* get 1st byte */ in _icv_iconv()
94 if (ISASC((int)ic1)) { /* ASCII; 1 byte */ in _icv_iconv()
95 uni = _jfp_tbl_jisx0201roman_to_ucs2[ic1]; in _icv_iconv()
97 } else if (ISSJKANA(ic1)) { /* JIS X 0201 Kana; 1 byte */ in _icv_iconv()
98 uni = _jfp_tbl_jisx0201kana_to_ucs2[(ic1 - 0xa1)]; in _icv_iconv()
100 } else if (ISSJKANJI1(ic1)) { /* JIS X 0208 or UDC; 2 bytes */ in _icv_iconv()
103 ic1 = sjtojis1[(ic1 - 0x80)]; in _icv_iconv()
105 ic1++; in _icv_iconv()
107 index = ((ic1 - 0x21) * 94) in _icv_iconv()
[all …]
H A Djfp_iconv_unicode.h87 unsigned char ic1, ic2, ic3, ic4; /* bytes read */ in read_unicode() local
90 NGET(ic1, "UTF32-1"); in read_unicode()
97 u32 |= (unsigned int)ic1 << 24; in read_unicode()
120 u32 |= (unsigned int)ic1 << 0; in read_unicode()
126 u32 |= (unsigned int)ic1 << 24; in read_unicode()
166 unsigned char ic1, ic2; /* bytes read */ in read_unicode() local
172 NGET(ic1, "UTF16-1"); /* read 1st byte */ in read_unicode()
177 u32 |= (unsigned int)ic1 << 8; in read_unicode()
197 u32 = (((unsigned int)ic2) << 8) | ic1; in read_unicode()
199 u32 = (((unsigned int)ic1) << 8) | ic2; in read_unicode()
[all …]
H A DISO-2022-JP-2004_TO_Unicode.c69 unsigned char ic1, ic2; /* bytes in a char or an esc seq */ in _icv_iconv() local
97 NGET(ic1, "never fail here"); /* get 1st byte */ in _icv_iconv()
99 if (ic1 == ESC) { /* Escape */ in _icv_iconv()
143 if ((ic1 == 0x0e) || (ic1 == 0x0f) || (ic1 > 0x7f)) { in _icv_iconv()
146 u32 = (unsigned int)_jfp_tbl_jisx0201roman_to_ucs2[ic1]; in _icv_iconv()
149 if ((ic1 < 0x21) || (ic1 > 0x7e)) { in _icv_iconv()
156 e16 = ((ic1 << 8) | ic2) | 0x8080; in _icv_iconv()
158 (ic1 - 0x21) * 94 + (ic2 - 0x21)]; in _icv_iconv()
172 if ((ic1 < 0x21) || (ic1 > 0x7e)) { in _icv_iconv()
179 e16 = ((ic1 << 8) | ic2) | 0x8000; in _icv_iconv()
[all …]
H A DShift_JIS-2004_TO_Unicode.c164 unsigned char ic1, ic2; /* 1st and 2nd bytes of a char */ in _icv_iconv() local
187 NGET(ic1, "never fail here"); /* get 1st byte */ in _icv_iconv()
189 if (ISASC((int)ic1)) { /* ASCII; 1 byte */ in _icv_iconv()
190 u32 = _jfp_tbl_jisx0201roman_to_ucs2[ic1]; in _icv_iconv()
192 } else if (ISSJKANA(ic1)) { /* JIS X 0201 Kana; 1 byte */ in _icv_iconv()
193 u32 = _jfp_tbl_jisx0201kana_to_ucs2[ic1 - 0xa1]; in _icv_iconv()
195 } else if (((ic1 >= 0x81) && (ic1 <= 0x9f)) || in _icv_iconv()
196 ((ic1 >= 0xe0) && (ic1 <= 0xef))) { in _icv_iconv()
200 e16 = sjtoe16_x0213(ic1, ic2); in _icv_iconv()
222 } else if ((ic1 >= 0xf0) && (ic1 <= 0xfc)) { in _icv_iconv()
[all …]
H A DEUC-JIS-2004_TO_Unicode.c55 unsigned char ic1, ic2, ic3; /* 1st, 2nd, and 3rd bytes of a char */ in _icv_iconv() local
78 NGET(ic1, "never fail here"); /* get 1st byte */ in _icv_iconv()
80 if (ISASC(ic1)) { /* CS0; 1 byte */ in _icv_iconv()
81 u32 = (unsigned int)_jfp_tbl_jisx0201roman_to_ucs2[ic1]; in _icv_iconv()
83 } else if (ISCS1(ic1)) { /* JIS X 0213 plane 1; 2 bytes */ in _icv_iconv()
86 e16 = (ic1 << 8) | ic2; in _icv_iconv()
88 (ic1 - 0xa1) * 94 + (ic2 - 0xa1)]; in _icv_iconv()
106 } else if (ic1 == SS2) { /* JIS X 0201 Kana; 2 bytes */ in _icv_iconv()
115 } else if (ic1 == SS3) { /* JIS X 0213 plane 2; 3 bytes */ in _icv_iconv()
137 } else if (ISC1CTRLEUC(ic1)) { /* C1 control; 1 byte */ in _icv_iconv()
[all …]
H A DeucJP_TO_Unicode.c60 unsigned char ic1, ic2, ic3; /* 1st, 2nd, and 3rd bytes of a char */ in _icv_iconv() local
83 NGET(ic1, "never fail here"); /* get 1st byte */ in _icv_iconv()
85 if (ISASC(ic1)) { /* ASCII; 1 byte */ in _icv_iconv()
86 u32 = _jfp_tbl_jisx0201roman_to_ucs2[ic1]; in _icv_iconv()
88 } else if (ISCS1(ic1)) { /* JIS X 0208 or UDC; 2 bytes */ in _icv_iconv()
92 (ic1 - 0xa1) * 94 + (ic2 - 0xa1)]; in _icv_iconv()
97 } else if (ic1 == SS2) { /* JIS X 0201 Kana; 2 bytes */ in _icv_iconv()
106 } else if (ic1 == SS3) { /* JIS X 0212 or UDC; 3 bytes */ in _icv_iconv()
121 } else if (ISC1CTRLEUC(ic1)) { /* C1 control; 1 byte */ in _icv_iconv()
122 u32 = ic1; in _icv_iconv()
H A DUnicode_TO_Shift_JIS-2004.c146 unsigned char ic1, ic2; in _icv_iconv() local
175 ic1 = (unsigned char)e16; in _icv_iconv()
176 NPUT(ic1, "ASCII"); in _icv_iconv()
179 ic1 = e16tosj_x0213(e16, &ic2); in _icv_iconv()
180 NPUT(ic1, "PLANE1-1"); in _icv_iconv()
184 ic1 = (unsigned char)e16; in _icv_iconv()
185 NPUT(ic1, "KANA"); in _icv_iconv()
188 ic1 = e16tosj_x0213(e16, &ic2); in _icv_iconv()
189 NPUT(ic1, "PLANE2-1"); in _icv_iconv()
/illumos-gate/usr/src/uts/common/kiconv/kiconv_ja/
H A Dkiconv_ja.c83 uchar_t ic1; /* 1st byte */ in utf8_ucs() local
90 KICONV_JA_NGET(ic1); /* read 1st byte */ in utf8_ucs()
92 if (ic1 < 0x80) { in utf8_ucs()
94 *p = (uint_t)ic1; in utf8_ucs()
98 u8_size = u8_number_of_bytes[ic1]; in utf8_ucs()
107 l = ic1 & u8_masks_tbl[remaining_bytes]; in utf8_ucs()
111 if (ic1 != 0U) { in utf8_ucs()
112 if ((ic < u8_valid_min_2nd_byte[ic1]) || in utf8_ucs()
113 (ic > u8_valid_max_2nd_byte[ic1])) { in utf8_ucs()
116 ic1 = 0U; /* 2nd byte check done */ in utf8_ucs()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/translators/
H A Derr.D_XLATE_REDECL.RepeatTransDecl.d39 char ic1; member
51 oc = ((struct input_struct *) ivar1)->ic1;
57 oc = ((struct input_struct *) ivar1)->ic1;
H A Dtst.RepeatDeclaration.d39 char ic1; member
56 oc = ((struct input_struct1 *) ivar1)->ic1;
H A Dtst.SimultaneousTranslators.d41 char ic1; member