Lines Matching defs:ei
110 _BIG5EncodingInfo ei;
126 #define _CEI_TO_EI(_cei_) (&(_cei_)->ei)
140 _citrus_BIG5_init_state(_BIG5EncodingInfo * __restrict ei,
148 _citrus_BIG5_pack_state(_BIG5EncodingInfo * __restrict ei,
157 _citrus_BIG5_unpack_state(_BIG5EncodingInfo * __restrict ei,
165 _citrus_BIG5_check(_BIG5EncodingInfo *ei, u_int c)
167 _DIAGASSERT(ei != NULL);
169 return (ei->cell[c & 0xFF] & 0x1) ? 2 : 1;
173 _citrus_BIG5_check2(_BIG5EncodingInfo *ei, u_int c)
175 _DIAGASSERT(ei != NULL);
177 return (ei->cell[c & 0xFF] & 0x2) ? 1 : 0;
181 _citrus_BIG5_check_excludes(_BIG5EncodingInfo *ei, wint_t c)
185 _DIAGASSERT(ei != NULL);
187 TAILQ_FOREACH(exclude, &ei->excludes, entry) {
198 _BIG5EncodingInfo *ei;
206 ei = (_BIG5EncodingInfo *)ctx;
210 ei->cell[n & 0xFF] |= i;
219 _BIG5EncodingInfo *ei;
226 ei = (_BIG5EncodingInfo *)ctx;
227 exclude = TAILQ_LAST(&ei->excludes, _BIG5ExcludeList);
235 TAILQ_INSERT_TAIL(&ei->excludes, exclude, entry);
249 _citrus_BIG5_encoding_module_uninit(_BIG5EncodingInfo *ei)
253 _DIAGASSERT(ei != NULL);
255 while ((exclude = TAILQ_FIRST(&ei->excludes)) != NULL) {
256 TAILQ_REMOVE(&ei->excludes, exclude, entry);
263 _citrus_BIG5_encoding_module_init(_BIG5EncodingInfo * __restrict ei,
269 _DIAGASSERT(ei != NULL);
271 memset((void *)ei, 0, sizeof(*ei));
272 TAILQ_INIT(&ei->excludes);
278 root_hints, (void *)ei, s, lenvar);
282 _citrus_BIG5_encoding_module_uninit(ei);
283 memset((void *)ei, 0, sizeof(*ei));
284 TAILQ_INIT(&ei->excludes);
289 _citrus_BIG5_fill_rowcol(ei, "row", 0xA1, 0xFE);
290 _citrus_BIG5_fill_rowcol(ei, "col", 0x40, 0x7E);
291 _citrus_BIG5_fill_rowcol(ei, "col", 0xA1, 0xFE);
298 _citrus_BIG5_mbrtowc_priv(_BIG5EncodingInfo * __restrict ei,
310 _DIAGASSERT(ei != NULL);
317 _citrus_BIG5_init_state(ei, psenc);
340 c = _citrus_BIG5_check(ei, psenc->ch[0] & 0xff);
357 if (!_citrus_BIG5_check2(ei, psenc->ch[1] & 0xff))
366 if (_citrus_BIG5_check_excludes(ei, (wint_t)wchar) != 0)
393 _citrus_BIG5_wcrtomb_priv(_BIG5EncodingInfo * __restrict ei,
400 _DIAGASSERT(ei != NULL);
406 _citrus_BIG5_check_excludes(ei, (wint_t)wc) != 0) {
412 if (_citrus_BIG5_check(ei, (wc >> 8) & 0xff) != 2 ||
413 !_citrus_BIG5_check2(ei, wc & 0xff)) {
419 if (wc & ~0xff || !_citrus_BIG5_check(ei, wc & 0xff)) {
449 _citrus_BIG5_stdenc_wctocs(_BIG5EncodingInfo * __restrict ei,
464 _citrus_BIG5_stdenc_cstowc(_BIG5EncodingInfo * __restrict ei,
484 _citrus_BIG5_stdenc_get_state_desc_generic(_BIG5EncodingInfo * __restrict ei,