Lines Matching refs:ucs2_t

56 static ucs2_t
57 find_code_size (ucs2_t code, const __uint16_t *tblp);
59 static __inline ucs2_t
60 find_code_speed (ucs2_t code, const __uint16_t *tblp);
62 static __inline ucs2_t
63 find_code_speed_8bit (ucs2_t code, const unsigned char *tblp);
131 ucs2_t code; in table_convert_from_ucs()
138 code = find_code_speed_8bit ((ucs2_t)in, in table_convert_from_ucs()
148 code = find_code_speed ((ucs2_t)in, ccsp->tbl); in table_convert_from_ucs()
150 code = find_code_size ((ucs2_t)in, ccsp->tbl); in table_convert_from_ucs()
159 **outbuf = (unsigned char)((ucs2_t)code >> 8); in table_convert_from_ucs()
211 ucs2_t ucs; in table_convert_to_ucs()
218 ucs = (ucs2_t)ccsp->tbl[**inbuf]; in table_convert_to_ucs()
232 ucs = find_code_size((ucs2_t)**inbuf << 8 | (ucs2_t)*(*inbuf + 1), in table_convert_to_ucs()
235 ucs = find_code_speed((ucs2_t)**inbuf << 8 | (ucs2_t)*(*inbuf + 1), in table_convert_to_ucs()
296 static __inline ucs2_t
297 find_code_speed (ucs2_t code, in find_code_speed()
303 return (ucs2_t)INVALC; in find_code_speed()
305 return (ucs2_t)tblp[(code & 0x00FF) + idx]; in find_code_speed()
318 static __inline ucs2_t
319 find_code_speed_8bit (ucs2_t code, in find_code_speed_8bit()
325 if (code == ((ucs2_t *)tblp)[0]) in find_code_speed_8bit()
326 return (ucs2_t)0xFF; in find_code_speed_8bit()
328 idx = ((ucs2_t *)tblp)[1 + (code >> 8)]; in find_code_speed_8bit()
331 return (ucs2_t)INVALC; in find_code_speed_8bit()
335 return ccs == 0xFF ? (ucs2_t)INVALC : (ucs2_t)ccs; in find_code_speed_8bit()
357 static ucs2_t
358 find_code_size (ucs2_t code, in find_code_size()
378 return (ucs2_t)tblp[RANGE_INDEX (cur) + code - RANGE_LEFT (cur)]; in find_code_size()
384 return (ucs2_t)tblp[RANGE_INDEX (first) in find_code_size()
387 return (ucs2_t)tblp[RANGE_INDEX (last) in find_code_size()
410 return (ucs2_t)tblp[UNRANGED_INDEX (cur) + 1]; in find_code_size()
416 return (ucs2_t)tblp[UNRANGED_INDEX (first) + 1]; in find_code_size()
418 return (ucs2_t)tblp[UNRANGED_INDEX (last) + 1]; in find_code_size()
422 return (ucs2_t)INVALC; in find_code_size()
546 if ((ccsp->tbl = (ucs2_t *)malloc (tbllen)) == NULL) in load_file()