Home | History | Annotate | Download | only in modules

Lines Matching defs:ei

102 	_EUCEncodingInfo	ei;
121 #define _CEI_TO_EI(_cei_) (&(_cei_)->ei)
142 _citrus_EUC_parse_variable(_EUCEncodingInfo *ei,
157 ei->mb_cur_max = 1;
159 ei->count[x] = (int)_bcs_strtol(v, (char **)&e, 0);
160 if (v == e || !(v = e) || ei->count[x]<1 || ei->count[x]>4) {
163 if (ei->mb_cur_max < ei->count[x])
164 ei->mb_cur_max = ei->count[x];
167 ei->bits[x] = (int)_bcs_strtol(v, (char **)&e, 0);
174 ei->mask = (int)_bcs_strtol(v, (char **)&e, 0);
185 _citrus_EUC_init_state(_EUCEncodingInfo *ei, _EUCState *s)
192 _citrus_EUC_pack_state(_EUCEncodingInfo *ei, void *pspriv, const _EUCState *s)
199 _citrus_EUC_unpack_state(_EUCEncodingInfo *ei, _EUCState *s,
206 _citrus_EUC_mbrtowc_priv(_EUCEncodingInfo *ei, wchar_t *pwc, const char **s,
215 _DIAGASSERT(ei != NULL);
222 _citrus_EUC_init_state(ei, psenc);
246 c = ei->count[cs = _citrus_EUC_cs(psenc->ch[0] & 0xff)];
276 wchar = (wchar & ~ei->mask) | ei->bits[cs];
302 _citrus_EUC_wcrtomb_priv(_EUCEncodingInfo *ei, char *s, size_t n, wchar_t wc,
308 _DIAGASSERT(ei != NULL);
312 m = wc & ei->mask;
316 cs < sizeof(ei->count)/sizeof(ei->count[0]);
318 if (m == ei->bits[cs])
322 if (cs == sizeof(ei->count)/sizeof(ei->count[0]))
325 i = ei->count[cs];
345 *nresult = (size_t)ei->count[cs];
355 _citrus_EUC_stdenc_wctocs(_EUCEncodingInfo * __restrict ei,
361 _DIAGASSERT(ei != NULL && csid != NULL && idx != NULL);
363 m = wc & ei->mask;
374 _citrus_EUC_stdenc_cstowc(_EUCEncodingInfo * __restrict ei,
379 _DIAGASSERT(ei != NULL && wc != NULL);
381 if ((csid & ~ei->mask) != 0 || (idx & ei->mask) != 0)
391 _citrus_EUC_stdenc_get_state_desc_generic(_EUCEncodingInfo * __restrict ei,
406 _citrus_EUC_encoding_module_init(_EUCEncodingInfo * __restrict ei,
410 _DIAGASSERT(ei != NULL);
412 return (_citrus_EUC_parse_variable(ei, var, lenvar));
417 _citrus_EUC_encoding_module_uninit(_EUCEncodingInfo * __restrict ei)