Home
last modified time | relevance | path

Searched refs:keepc (Results 1 – 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/lib/iconv_modules/hi_IN/
H A Discii91%UTF-8.c52 char keepc[3]; /* keepc[0] is attr, keepc[1] and keepc[2] are lookup-ed */ member
113 ISCII isc_type = isc_TYPE[st->keepc[0] - DEV_ATR]; in iscii_to_utf8()
116 unsigned int keepc1 = (unsigned int) (st->keepc[1] & ONEBYTE); in iscii_to_utf8()
117 unsigned int keepc2 = (unsigned int) (st->keepc[2] & ONEBYTE); in iscii_to_utf8()
139 st->keepc[1] = 0; in iscii_to_utf8()
158 st->keepc[1] = st->keepc[2] = 0; in iscii_to_utf8()
167 st->keepc[1] = st->keepc[2]; in iscii_to_utf8()
176 st->keepc[1] = st->keepc[2] = 0; in iscii_to_utf8()
187 st->keepc[1] = st->keepc[2] = 0; in iscii_to_utf8()
207 st->keepc[1] = st->keepc[2] = 0; in iscii_to_utf8()
[all …]
H A Dea-iscii%iscii91.c43 uchar keepc; /* if is_vowel is true, store the char following the FIRST_VOWEL */ member
77 if ( st->keepc == 0 ) { in get_iscii()
84 st->keepc = ea_iscii; in get_iscii()
95 if ( st->keepc == 0x73 ) iscii = 0xAE; in get_iscii()
96 if ( st->keepc == 0x76 ) iscii = 0xB2; in get_iscii()
97 st->keepc = 0; in get_iscii()
99 iscii = get_vowel(st->keepc); in get_iscii()
100 st->keepc = ea_iscii; in get_iscii()
106 if ( is_first_vowel(st->keepc) ) { in get_iscii()
109 st->keepc = ea_iscii; in get_iscii()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/vi/common/
H A DUTF-8%viscii.c42 char keepc[6]; /* maximum # byte of UTF8 code */ member
154 st->keepc[0] = **inbuf; in _icv_iconv()
158 st->keepc[0] = **inbuf; in _icv_iconv()
165 st->keepc[0] = **inbuf; in _icv_iconv()
174 st->keepc[1] = **inbuf; in _icv_iconv()
176 c1 = (st->keepc[0]&0x1c)>>2; in _icv_iconv()
177 c2 = ((st->keepc[0]&0x03)<<6) | ((st->keepc[1])&0x3f); in _icv_iconv()
181 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv()
190 first_byte = (uchar_t)st->keepc[0]; in _icv_iconv()
199 st->keepc[1] = **inbuf; in _icv_iconv()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A DUTF-8%zh_HK.hkscs.c41 char keepc[6]; /* maximum # byte of UTF8 code */ member
156 st->keepc[0] = **inbuf; in _icv_iconv()
170 st->keepc[0] = **inbuf; in _icv_iconv()
174 st->keepc[0] = **inbuf; in _icv_iconv()
182 st->keepc[0] = **inbuf; in _icv_iconv()
189 st->keepc[1] = **inbuf; in _icv_iconv()
199 if (st->keepc[1] == 0 && (st->keepc[0] & 0x80) == 0) { in _icv_iconv()
200 *(*outbuf)++ = st->keepc[0]; in _icv_iconv()
206 ucs = ((st->keepc[1] & 0xff) << 8) | ( st->keepc[0] & 0xff); in _icv_iconv()
209 convert_utf8_to_ucs4((uchar_t*)(&st->keepc[0]), utf8_len, &ucs); in _icv_iconv()
[all …]
H A Dzh_TW-euc%zh_TW-iso2022-7.c50 char keepc[4]; /* maximum # byte of CNS11643 code */ member
72 char keepc[4]; member
176 st->keepc[0] = (**inbuf); in _icv_iconv()
196 if ((st->keepc[0] & ONEBYTE) == MBYTE) { /* 4-byte (0x8e) */ in _icv_iconv()
203 st->keepc[1] = (**inbuf); in _icv_iconv()
209 st->keepc[1] = (**inbuf); in _icv_iconv()
210 st->keepc[2] = st->keepc[3] = '\0'; in _icv_iconv()
224 st->keepc[2] = (**inbuf); in _icv_iconv()
234 st->keepc[3] = (**inbuf); in _icv_iconv()
275 n = cns_to_iso(plane_no, st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
[all …]
H A DUTF-8%zh_TW-big5.c41 char keepc[6]; /* maximum # byte of UTF8 code */ member
157 st->keepc[0] = **inbuf; in _icv_iconv()
171 st->keepc[0] = **inbuf; in _icv_iconv()
175 st->keepc[0] = **inbuf; in _icv_iconv()
182 st->keepc[0] = **inbuf; in _icv_iconv()
190 st->keepc[1] = **inbuf; in _icv_iconv()
199 if (st->keepc[1] == 0 && (st->keepc[0] & 0x80) == 0) { in _icv_iconv()
200 *(*outbuf)++ = st->keepc[0]; in _icv_iconv()
206 ucs = ((st->keepc[1] & 0xff) << 8) | (st->keepc[0] & 0xff); in _icv_iconv()
209 convert_utf8_to_ucs4((uchar_t*)(&st->keepc[0]), utf8_len, &ucs); in _icv_iconv()
[all …]
H A DUTF-8%zh_TW-euc.c46 char keepc[6]; /* maximum # byte of UTF8 code */ member
161 st->keepc[0] = **inbuf; in _icv_iconv()
175 st->keepc[0] = **inbuf; in _icv_iconv()
179 st->keepc[0] = **inbuf; in _icv_iconv()
186 st->keepc[0] = **inbuf; in _icv_iconv()
194 st->keepc[1] = **inbuf; in _icv_iconv()
203 if (st->keepc[1] == 0 && (st->keepc[0] & 0x80) == 0) { in _icv_iconv()
204 *(*outbuf)++ = st->keepc[0]; in _icv_iconv()
210 ucs = ((st->keepc[1] & 0xff)<< 8) | (st->keepc[0] & 0xff); in _icv_iconv()
213 convert_utf8_to_ucs4((uchar_t*)(&st->keepc[0]), utf8_len, &ucs); in _icv_iconv()
[all …]
H A DUTF-8%zh_TW-big5p.c40 char keepc[6]; /* maximum # byte of UTF8 code */ member
154 st->keepc[0] = **inbuf; in _icv_iconv()
158 st->keepc[0] = **inbuf; in _icv_iconv()
166 st->keepc[0] = **inbuf; in _icv_iconv()
174 st->keepc[1] = **inbuf; in _icv_iconv()
175 c1 = (st->keepc[0]&0x1c)>>2; in _icv_iconv()
176 c2 = ((st->keepc[0]&0x03)<<6) | ((**inbuf)&0x3f); in _icv_iconv()
179 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv()
188 first_byte = st->keepc[0]; in _icv_iconv()
198 st->keepc[1] = **inbuf; in _icv_iconv()
[all …]
H A Dzh_CN.gbk%zh_HK.hkscs.c41 int gbk_to_hkscs(char keepc[], char *buf, size_t buflen);
42 int gbk4_to_hkscs(char keepc[], char *buf, size_t buflen);
45 char keepc[4]; /* maximum # byte of GB chararor in two bytes area */ member
120 st->keepc[0] = (**inbuf); in _icv_iconv()
130 st->keepc[1] = (**inbuf); in _icv_iconv()
131 n = gbk_to_hkscs(st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
141 st->keepc[1] = (**inbuf); in _icv_iconv()
149 st->keepc[2] = (**inbuf); in _icv_iconv()
158 st->keepc[3] = (**inbuf); in _icv_iconv()
160 n = gbk4_to_hkscs(st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
[all …]
H A Dzh_TW-euc%zh_TW-big5.c41 char keepc[4]; /* maximum # byte of CNS11643 code */ member
136 st->keepc[0] = (**inbuf); in _icv_iconv()
145 if ((st->keepc[0] & ONEBYTE) == MBYTE) { /* 4-byte (0x8e) */ in _icv_iconv()
150 st->keepc[1] = (**inbuf); in _icv_iconv()
155 st->keepc[1] = (**inbuf); in _icv_iconv()
156 st->keepc[2] = st->keepc[3] = '\0'; in _icv_iconv()
157 n = cns_to_big5(1, st->keepc, *outbuf, in _icv_iconv()
176 st->keepc[2] = (**inbuf); in _icv_iconv()
184 st->keepc[3] = (**inbuf); in _icv_iconv()
185 n = cns_to_big5(plane_no, st->keepc, *outbuf, in _icv_iconv()
[all …]
H A Dzh_CN.gbk%UTF-8.c60 char keepc[GBK_LEN_MAX]; /* maximum # byte of GBK2K code */ member
174 st->keepc[0] = (**inbuf); in _icv_iconv()
191 st->keepc[1] = (**inbuf); in _icv_iconv()
192 st->keepc[2] = st->keepc[3] = 0; in _icv_iconv()
208 st->keepc[1] = **inbuf; in _icv_iconv()
218 st->keepc[2] = **inbuf; in _icv_iconv()
228 st->keepc[3] = **inbuf; in _icv_iconv()
305 char *keepc = st->keepc; local
307 if ( keepc[2] == 0 && keepc[3] == 0 )
311 gbk_val = ((keepc[0]&ONEBYTE) << 8) + (keepc[1]&ONEBYTE);
[all …]
H A Dzh_TW-iso2022-7%zh_TW-big5.c51 char keepc[4]; /* maximum # byte of CNS11643 code */ member
232 st->keepc[0] = (char) (**inbuf | MSB); in _icv_iconv()
235 st->keepc[0] = (char) MBYTE; in _icv_iconv()
236 st->keepc[1] = (char) (PMASK + in _icv_iconv()
238 st->keepc[2] = (char) (**inbuf | MSB); in _icv_iconv()
244 st->keepc[1] = (char) (**inbuf | MSB); in _icv_iconv()
245 st->keepc[2] = st->keepc[3] = '\0'; in _icv_iconv()
246 n = iso_to_big5(1, st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
257 st->keepc[3] = (char) (**inbuf | MSB); in _icv_iconv()
258 n = iso_to_big5(st->plane_no, st->keepc, *outbuf, in _icv_iconv()
[all …]
H A DUTF-8%zh_TW-iso2022-7.c51 char keepc[6]; /* maximum # byte of UTF8 code */ member
191 st->keepc[0] = **inbuf; in _icv_iconv()
195 st->keepc[0] = **inbuf; in _icv_iconv()
203 st->keepc[0] = **inbuf; in _icv_iconv()
211 st->keepc[1] = **inbuf; in _icv_iconv()
212 c1 = (st->keepc[0]&0x1c)>>2; in _icv_iconv()
213 c2 = ((st->keepc[0]&0x03)<<6) | ((**inbuf)&0x3f); in _icv_iconv()
216 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv()
225 first_byte = st->keepc[0]; in _icv_iconv()
235 st->keepc[1] = **inbuf; in _icv_iconv()
[all …]
H A DUTF-8%zh_CN.gbk.c44 char keepc[6]; /* maximum # byte of UTF8 code */ member
241 st->keepc[0] = **inbuf; in _icv_iconv()
245 st->keepc[0] = **inbuf; in _icv_iconv()
252 st->keepc[0] = **inbuf; in _icv_iconv()
260 st->keepc[1] = **inbuf; in _icv_iconv()
262 c1 = (st->keepc[0]&0x1c)>>2; in _icv_iconv()
263 c2 = ((st->keepc[0]&0x03)<<6) | ((st->keepc[1])&0x3f); in _icv_iconv()
268 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv()
276 first_byte = (uchar_t)st->keepc[0]; in _icv_iconv()
287 st->keepc[1] = **inbuf; in _icv_iconv()
[all …]
H A Dzh_TW-iso2022-7%UTF-8.c54 char keepc[4]; /* maximum # byte of CNS11643 code */ member
232 st->keepc[0] = (char) (**inbuf | MSB); in _icv_iconv()
235 st->keepc[0] = (char) MBYTE; in _icv_iconv()
236 st->keepc[1] = (char) (PMASK + in _icv_iconv()
238 st->keepc[2] = (char) (**inbuf | MSB); in _icv_iconv()
244 st->keepc[1] = (char) (**inbuf | MSB); in _icv_iconv()
245 st->keepc[2] = st->keepc[3] = '\0'; in _icv_iconv()
246 n = iso_to_utf8(1, st->keepc, *outbuf, in _icv_iconv()
258 st->keepc[3] = (char) (**inbuf | MSB); in _icv_iconv()
259 n = iso_to_utf8(st->plane_no, st->keepc, *outbuf, in _icv_iconv()
[all …]
H A Dzh_TW-euc%UTF-8.c48 char keepc[4]; /* maximum # byte of CNS11643 code */ member
148 st->keepc[0] = (**inbuf); in _icv_iconv()
184 if (((uchar_t)st->keepc[0]) == MBYTE) { in _icv_iconv()
189 st->keepc[1] = (**inbuf); in _icv_iconv()
196 st->keepc[1] = (**inbuf); in _icv_iconv()
197 st->keepc[2] = st->keepc[3] = '\0'; in _icv_iconv()
219 st->keepc[2] = (**inbuf); in _icv_iconv()
229 st->keepc[3] = (**inbuf); in _icv_iconv()
328 char *keepc = st->keepc; in cns_to_utf8() local
331 fprintf(stderr, "%s %d ", keepc, plane_no); in cns_to_utf8()
[all …]
H A Dzh_TW-euc%zh_TW-iso2022-CN-EXT.c49 char keepc[4]; /* maximum # byte of CNS11643 code */ member
180 st->keepc[0] = (**inbuf); in _icv_iconv()
202 if ((st->keepc[0] & ONEBYTE) == MBYTE) { /* 4-byte (0x8e) */ in _icv_iconv()
210 st->keepc[1] = (**inbuf); in _icv_iconv()
215 st->keepc[1] = (**inbuf); in _icv_iconv()
228 st->keepc[2] = (**inbuf); in _icv_iconv()
238 st->keepc[3] = (**inbuf); in _icv_iconv()
258 *(*outbuf)++ = st->keepc[0] & MSB_OFF; in _icv_iconv()
259 *(*outbuf)++ = st->keepc[1] & MSB_OFF; in _icv_iconv()
268 BUF_INPUT(ESC, 0x4E, st->keepc[2] & MSB_OFF, st->keepc[3] & MSB_OFF); in _icv_iconv()
[all …]
H A Dzh_TW-iso2022-7%zh_TW-euc.c52 char keepc[4]; /* maximum # byte of CNS11643 code */ member
296 st->keepc[0] = (char) (**inbuf | MSB); in _icv_iconv()
299 st->keepc[0] = (char) MBYTE; in _icv_iconv()
300 st->keepc[1] = (char) (PMASK + in _icv_iconv()
302 st->keepc[2] = (char) (**inbuf | MSB); in _icv_iconv()
308 st->keepc[1] = (char) (**inbuf | MSB); in _icv_iconv()
309 st->keepc[2] = st->keepc[3] = '\0'; in _icv_iconv()
310 n = iso_to_cns(1, st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
321 st->keepc[3] = (char) (**inbuf | MSB); in _icv_iconv()
322 n = iso_to_cns(st->plane_no, st->keepc, *outbuf, in _icv_iconv()
[all …]
H A Dzh_CN.euc%zh_TW-big5.c35 char keepc[2]; /* maximum # byte of GB chararor */ member
43 int gb2312_to_big5(char keepc[], char *buf, size_t buflen);
97 st->keepc[0] = (**inbuf); in _icv_iconv()
107 st->keepc[1] = (**inbuf); in _icv_iconv()
108 n = gb2312_to_big5(st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
172 int gb2312_to_big5(char keepc[], char *buf, size_t buflen) { in gb2312_to_big5() argument
183 gb_val = ((keepc[0] & ONEBYTE) << 8) + (keepc[1] & ONEBYTE); in gb2312_to_big5()
H A Dzh_HK.hkscs%zh_TW-big5p.c36 char keepc[2]; /* maximum # byte of HKSCS charactor */ member
44 int hkscs_to_big5p(char keepc[], char *buf, size_t buflen);
98 st->keepc[0] = (**inbuf); in _icv_iconv()
108 st->keepc[1] = (**inbuf); in _icv_iconv()
109 n = hkscs_to_big5p(st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
172 int hkscs_to_big5p(char keepc[], char *buf, size_t buflen) { in hkscs_to_big5p() argument
183 hkscs_val = ((keepc[0] & ONEBYTE) << 8) + (keepc[1] & ONEBYTE); in hkscs_to_big5p()
H A Dzh_TW-big5%zh_CN.gbk.c36 char keepc[2]; /* maximum # byte of BIG5 charactor */ member
44 int big5_to_gbk(char keepc[], char *buf, size_t buflen);
98 st->keepc[0] = (**inbuf); in _icv_iconv()
108 st->keepc[1] = (**inbuf); in _icv_iconv()
109 n = big5_to_gbk(st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
172 int big5_to_gbk(char keepc[], char *buf, size_t buflen) { in big5_to_gbk() argument
183 big5_val = ((keepc[0] & ONEBYTE) << 8) + (keepc[1] & ONEBYTE); in big5_to_gbk()
H A Dzh_TW-big5p%zh_CN.gbk.c36 char keepc[2]; /* maximum # byte of BIG5 charactor */ member
44 int big5p_to_gbk(char keepc[], char *buf, size_t buflen);
98 st->keepc[0] = (**inbuf); in _icv_iconv()
108 st->keepc[1] = (**inbuf); in _icv_iconv()
109 n = big5p_to_gbk(st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
172 int big5p_to_gbk(char keepc[], char *buf, size_t buflen) { in big5p_to_gbk() argument
183 big5_val = ((keepc[0] & ONEBYTE) << 8) + (keepc[1] & ONEBYTE); in big5p_to_gbk()
H A Dzh_TW-big5p%zh_HK.hkscs.c35 char keepc[2]; /* maximum # byte of BIG5 charactor */ member
43 int big5p_to_hkscs(char keepc[], char *buf, size_t buflen);
97 st->keepc[0] = (**inbuf); in _icv_iconv()
107 st->keepc[1] = (**inbuf); in _icv_iconv()
108 n = big5p_to_hkscs(st->keepc, *outbuf, *outbytesleft); in _icv_iconv()
171 int big5p_to_hkscs(char keepc[], char *buf, size_t buflen) { in big5p_to_hkscs() argument
182 big5_val = ((keepc[0] & ONEBYTE) << 8) + (keepc[1] & ONEBYTE); in big5p_to_hkscs()
/illumos-gate/usr/src/lib/iconv_modules/common/
H A Dcnv_utf8ibm.c109 st->keepc[0] = **inbuf; in _icv_iconv()
112 st->keepc[0] = **inbuf; in _icv_iconv()
116 c1 =st->keepc[0] = **inbuf; in _icv_iconv()
125 st->keepc[1] = **inbuf; in _icv_iconv()
126 c1 = (st->keepc[0]&0x1c)>>2; in _icv_iconv()
127 c2 = ((st->keepc[0]&0x03)<<6) | ((**inbuf)&0x3f); in _icv_iconv()
130 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv()
138 c2 =st->keepc[1] = **inbuf; in _icv_iconv()
145 st->keepc[1] = **inbuf; in _icv_iconv()
153 st->keepc[2] = **inbuf; in _icv_iconv()
[all …]
H A Dutf8%ibm.c112 st->keepc[0] = **inbuf; in _icv_iconv()
119 st->keepc[0] = **inbuf; in _icv_iconv()
122 st->keepc[0] = **inbuf; in _icv_iconv()
126 c1 =st->keepc[0] = **inbuf; in _icv_iconv()
135 st->keepc[1] = **inbuf; in _icv_iconv()
136 c1 = (st->keepc[0]&0x1c)>>2; in _icv_iconv()
137 c2 = ((st->keepc[0]&0x03)<<6) | ((**inbuf)&0x3f); in _icv_iconv()
140 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv()
148 c2 =st->keepc[1] = **inbuf; in _icv_iconv()
155 st->keepc[1] = **inbuf; in _icv_iconv()
[all …]

12