Lines Matching refs:NJ_UINT16

62 #define WORD_LEN(x) ((NJ_UINT16)(0x007F & (x)))
71 NJ_UINT16 stem_size;
72 NJ_UINT16 term;
73 NJ_UINT16 no_conv_flg;
75 NJ_UINT16 hindo_jitu;
76 NJ_UINT16 candidate_size;
77 NJ_UINT16 yomi_size;
78 NJ_UINT16 fhinsi;
79 NJ_UINT16 bhinsi;
80 NJ_UINT16 fhinsi_jitu;
81 NJ_UINT16 bhinsi_jitu;
87 static NJ_UINT16 get_stem_yomi_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data,STEM_DATA_SET *stem_set);
88 static NJ_UINT16 get_stem_yomi_size(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_UINT16 yomi_size);
89 static NJ_UINT16 get_stem_yomi_string(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_CHAR *yomi, NJ_UIN…
97 NJ_UINT16 hidx);
99 NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT16 hidx);
101 NJ_UINT8 *now, NJ_UINT16 idx_no,
102 NJ_CHAR *yomi, NJ_UINT16 yomilen,
104 NJ_UINT16 bit_left, NJ_UINT16 bit_data,
106 NJ_INT16 ytbl_cnt, NJ_UINT16 y,
110 NJ_UINT8 *data_top, NJ_UINT16 bit_left,
111 NJ_UINT16 bit_data, NJ_UINT32 top,
115 NJ_SEARCH_CACHE *psrhCache, NJ_UINT16 abIdx);
117 NJ_SEARCH_CACHE *psrhCache, NJ_UINT16 abIdx);
122 NJ_UINT16 data; in get_stem_hindo()
123 NJ_UINT16 pos, j, bit_all; in get_stem_hindo()
134 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit); in get_stem_hindo()
135 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_hindo()
136 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_hindo()
139 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_hindo()
151 NJ_UINT16 data; in get_stem_next()
152 NJ_UINT16 pos, j, bit_all; in get_stem_next()
153 NJ_UINT16 stem_size, cand_bit, yomi_bit; in get_stem_next()
154 NJ_UINT16 candidate_size, yomi_size; in get_stem_next()
165 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit + in get_stem_next()
169 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_next()
170 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next()
173 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_next()
183 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_next()
184 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next()
187 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_next()
212 NJ_UINT16 data; in get_stem_word()
213 NJ_UINT16 pos, j, bit_all = 0; in get_stem_word()
214 NJ_UINT16 bit; in get_stem_word()
215 NJ_UINT16 dpos = 0; in get_stem_word()
229 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit); in get_stem_word()
230 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_word()
231 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_word()
234 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_word()
242 stem_set->hindo_jitu = (NJ_UINT16)(*(HINDO_NO_TOP_ADDR(hdl) + stem_set->hindo)); in get_stem_word()
247 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit + BIT_HINDO_LEN(hdl)); in get_stem_word()
248 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_word()
249 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_word()
252 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_word()
261 wkc = (NJ_UINT8*)(HINSI_NO_TOP_ADDR(hdl) + (b * (NJ_UINT16)(stem_set->fhinsi))); in get_stem_word()
265 stem_set->fhinsi_jitu = (NJ_UINT16)(NJ_INT16_READ(wkc)); in get_stem_word()
267 stem_set->fhinsi_jitu = (NJ_UINT16)*wkc; in get_stem_word()
273 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit + BIT_HINDO_LEN(hdl) + BIT_FHINSI(hdl)); in get_stem_word()
274 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_word()
275 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_word()
278 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_word()
286 + (b * (FHINSI_NO_CNT(hdl) + (NJ_UINT16)(stem_set->bhinsi)))); in get_stem_word()
289 stem_set->bhinsi_jitu = (NJ_UINT16)(NJ_INT16_READ(wkc)); in get_stem_word()
291 stem_set->bhinsi_jitu = (NJ_UINT16)*wkc; in get_stem_word()
298 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit + in get_stem_word()
302 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_word()
303 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_word()
306 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_word()
318 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_word()
319 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_word()
322 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_word()
352 NJ_UINT16 data; in get_stem_cand_data()
353 NJ_UINT16 pos, j, bit_all; in get_stem_cand_data()
354 NJ_UINT16 cand_bit, yomi_bit; in get_stem_cand_data()
365 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit + in get_stem_cand_data()
369 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_cand_data()
370 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_cand_data()
374 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_cand_data()
390 static NJ_UINT16 get_stem_yomi_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data,STEM_DATA_SET *stem_set) in get_stem_yomi_data()
392 NJ_UINT16 flg_bit; in get_stem_yomi_data()
393 NJ_UINT16 data; in get_stem_yomi_data()
394 NJ_UINT16 cand_bit, yomi_bit; in get_stem_yomi_data()
395 NJ_UINT16 pos, j, bit_all; in get_stem_yomi_data()
396 NJ_UINT16 yomi_pos; in get_stem_yomi_data()
397 NJ_UINT16 candidate_size; in get_stem_yomi_data()
408 bit_all = (NJ_UINT16)(TERM_BIT + flg_bit + BIT_HINDO_LEN(hdl) + in get_stem_yomi_data()
410 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_yomi_data()
411 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_yomi_data()
414 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_yomi_data()
426 pos = (NJ_UINT16)(bit_all >> 3); in get_stem_yomi_data()
427 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_yomi_data()
430 j = (NJ_UINT16)(bit_all & 0x0007); in get_stem_yomi_data()
447 static NJ_UINT16 get_stem_yomi_size(NJ_DIC_HANDLE hdl, NJ_UINT8 *ydata, NJ_UINT16 yomi_size) in get_stem_yomi_size()
454 NJ_UINT16 i; in get_stem_yomi_size()
455 NJ_UINT16 len; in get_stem_yomi_size()
486 static NJ_UINT16 get_stem_yomi_string(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_CHAR *yomi, NJ_UIN… in get_stem_yomi_string()
493 NJ_UINT16 i; in get_stem_yomi_string()
494 NJ_UINT16 copy_len; in get_stem_yomi_string()
495 NJ_UINT16 char_len; in get_stem_yomi_string()
561 NJ_UINT16 c, d; in search_node()
563 NJ_UINT16 y; in search_node()
564 NJ_UINT16 ysize = (condition->ylen * sizeof(NJ_CHAR)); in search_node()
566 NJ_UINT16 idx_cnt; in search_node()
567 NJ_UINT16 nd_index; in search_node()
568 NJ_UINT16 bit_left, bit_data; in search_node()
570 NJ_UINT16 data; in search_node()
571 NJ_UINT16 pos, j, bit_all, bit_tmp, bit_idx; in search_node()
576 NJ_UINT16 hindo, hindo_max; in search_node()
629 c = (NJ_UINT16)((c1 << 8) | c2); in search_node()
634 c = (NJ_UINT16)(*byomi); in search_node()
648 idx = (NJ_UINT16)(mid + 1); in search_node()
666 d = (NJ_UINT16)(*wkc); in search_node()
668 idx = (NJ_UINT16)(mid + 1); in search_node()
715 bit_all += (NJ_UINT16)(idx_no << 3); in search_node()
718 pos = (NJ_UINT16)(bit_all >> 3); in search_node()
720 data = (NJ_UINT16)(NJ_INT16_READ(now + pos)); in search_node()
723 j = (NJ_UINT16)(bit_all & 0x0007); in search_node()
753 if ( (idx_cnt > (NJ_UINT16)(idx_no + 1))) { in search_node()
783 pos = (NJ_UINT16)(bit_idx >> 3); in search_node()
787 j = (NJ_UINT16)(bit_idx & 0x0007); in search_node()
811 pos = (NJ_UINT16)(bit_idx >> 3); in search_node()
815 j = (NJ_UINT16)(bit_idx & 0x0007); in search_node()
837 pos = (NJ_UINT16)(bit_all >> 3); in search_node()
841 j = (NJ_UINT16)(bit_all & 0x0007); in search_node()
864 pos = (NJ_UINT16)(bit_all >> 3); in search_node()
868 j = (NJ_UINT16)(bit_all & 0x0007); in search_node()
913 pos = (NJ_UINT16)(bit_all >> 3); in search_node()
917 j = (NJ_UINT16)(bit_all & 0x0007); in search_node()
934 pos = (NJ_UINT16)(bit_all >> 3); in search_node()
938 j = (NJ_UINT16)(bit_all & 0x0007); in search_node()
958 hindo = (NJ_UINT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle) in search_node()
974 hindo = (NJ_UINT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle) in search_node()
1002 NJ_UINT16 hindo; in bdic_search_data()
1037 hindo = (NJ_UINT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle) + in bdic_search_data()
1185 NJ_UINT16 hIdx; in njd_b_search_word()
1356 word->stem.info1 = (NJ_UINT16)(stem_set.yomi_size / sizeof(NJ_CHAR)); in njd_b_get_word()
1359 word->stem.info1 |= (NJ_UINT16)(stem_set.fhinsi_jitu << 7); in njd_b_get_word()
1365 word->stem.info2 = (NJ_UINT16)(stem_set.yomi_size / sizeof(NJ_CHAR)); in njd_b_get_word()
1368 word->stem.info2 = (NJ_UINT16)NJ_GET_YLEN_FROM_STEM(word); in njd_b_get_word()
1372 word->stem.info2 = (NJ_UINT16)(stem_set.candidate_size / sizeof(NJ_CHAR)); in njd_b_get_word()
1376 word->stem.info2 = (NJ_UINT16)NJ_GET_YLEN_FROM_STEM(word); in njd_b_get_word()
1380 word->stem.info2 |= (NJ_UINT16)(stem_set.bhinsi_jitu << 7); in njd_b_get_word()
1388 NJ_INT16 njd_b_get_candidate(NJ_WORD *word, NJ_CHAR *candidate, NJ_UINT16 size) in njd_b_get_candidate()
1395 NJ_UINT16 len, j; in njd_b_get_candidate()
1398 NJ_UINT16 yomi_pos; in njd_b_get_candidate()
1483 NJ_INT16 njd_b_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size) in njd_b_get_stroke()
1489 NJ_UINT16 yomi_pos; in njd_b_get_stroke()
1531 if (size < (NJ_UINT16)((len+NJ_TERM_LEN)*sizeof(NJ_CHAR))) { in njd_b_get_stroke()
1539 …INT16 search_node2(NJ_SEARCH_CONDITION *condition, NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT16 hidx) in search_node2()
1545 NJ_UINT16 y; in search_node2()
1548 NJ_UINT16 bit_left, bit_data; in search_node2()
1550 NJ_UINT16 j; in search_node2()
1552 NJ_UINT16 hindo, hindo_max, hindo_tmp; in search_node2()
1560 NJ_UINT16 abPtrIdx; in search_node2()
1561 NJ_UINT16 key_len; in search_node2()
1562 NJ_UINT16 i, l, m; in search_node2()
1563 NJ_UINT16 abIdx; in search_node2()
1564 NJ_UINT16 abIdx_current; in search_node2()
1565 NJ_UINT16 abIdx_old; in search_node2()
1566 NJ_UINT16 addcnt = 0; in search_node2()
1568 NJ_UINT16 tmp_len; in search_node2()
1569 NJ_UINT16 endIdx; in search_node2()
1572 NJ_UINT16 yomi_clen; in search_node2()
1911 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) + in search_node2()
1932 hindo = (NJ_UINT16) *((NJ_UINT8 *) (HINDO_NO_TOP_ADDR(loctset->loct.handle) + in search_node2()
1952 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) in search_node2()
1976 NJ_UINT16 idx_no, NJ_CHAR *yomi, NJ_UINT16 yomilen, in search_yomi_node()
1978 NJ_UINT16 bit_left, NJ_UINT16 bit_data, in search_yomi_node()
1980 NJ_INT16 ytbl_cnt, NJ_UINT16 y, NJ_UINT8 * ytbl_top, in search_yomi_node()
1992 NJ_UINT16 c, d; in search_yomi_node()
1994 NJ_UINT16 ysize = yomilen * sizeof(NJ_CHAR); in search_yomi_node()
1995 NJ_UINT16 idx_cnt; in search_yomi_node()
1996 NJ_UINT16 nd_index; in search_yomi_node()
1997 NJ_UINT16 data; in search_yomi_node()
1998 NJ_UINT16 pos, j, bit_all, bit_tmp, bit_idx; in search_yomi_node()
2027 c = (NJ_UINT16)((c1 << 8) | c2); in search_yomi_node()
2032 c = (NJ_UINT16)(*byomi); in search_yomi_node()
2046 idx = (NJ_UINT16) (mid + 1); in search_yomi_node()
2064 d = (NJ_UINT16) (*wkc); in search_yomi_node()
2066 idx = (NJ_UINT16) (mid + 1); in search_yomi_node()
2112 bit_all += (NJ_UINT16) (idx_no << 3); in search_yomi_node()
2114 pos = (NJ_UINT16) (bit_all >> 3); in search_yomi_node()
2116 data = (NJ_UINT16) (NJ_INT16_READ(now + pos)); in search_yomi_node()
2118 j = (NJ_UINT16) (bit_all & 0x0007); in search_yomi_node()
2147 if ( (idx_cnt > (NJ_UINT16) (idx_no + 1))) { in search_yomi_node()
2181 pos = (NJ_UINT16) (bit_idx >> 3); in search_yomi_node()
2185 j = (NJ_UINT16) (bit_idx & 0x0007); in search_yomi_node()
2215 pos = (NJ_UINT16) (bit_idx >> 3); in search_yomi_node()
2219 j = (NJ_UINT16) (bit_idx & 0x0007); in search_yomi_node()
2240 pos = (NJ_UINT16) (bit_all >> 3); in search_yomi_node()
2244 j = (NJ_UINT16) (bit_all & 0x0007); in search_yomi_node()
2251 NJ_UINT8 * data_top, NJ_UINT16 bit_left, NJ_UINT16 bit_data, in get_node_bottom()
2256 NJ_UINT16 idx_cnt; in get_node_bottom()
2258 NJ_UINT16 pos, j, bit_all; in get_node_bottom()
2282 pos = (NJ_UINT16) (bit_all >> 3); in get_node_bottom()
2286 j = (NJ_UINT16) (bit_all & 0x0007); in get_node_bottom()
2332 pos = (NJ_UINT16) (bit_all >> 3); in get_node_bottom()
2336 j = (NJ_UINT16) (bit_all & 0x0007); in get_node_bottom()
2353 pos = (NJ_UINT16) (bit_all >> 3); in get_node_bottom()
2357 j = (NJ_UINT16) (bit_all & 0x0007); in get_node_bottom()
2377 …_search_fore_data2(NJ_SEARCH_CONDITION *condition, NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT16 hidx) in bdic_search_fore_data2()
2387 NJ_UINT16 top_abIdx; in bdic_search_fore_data2()
2388 NJ_UINT16 bottom_abIdx; in bdic_search_fore_data2()
2389 NJ_UINT16 count_abIdx; in bdic_search_fore_data2()
2390 NJ_UINT16 current_abIdx; in bdic_search_fore_data2()
2391 NJ_UINT16 old_abIdx; in bdic_search_fore_data2()
2394 NJ_UINT16 save_abIdx = 0; in bdic_search_fore_data2()
2395 NJ_UINT16 abPtrIdx; in bdic_search_fore_data2()
2396 NJ_UINT16 m; in bdic_search_fore_data2()
2400 NJ_UINT16 abIdx; in bdic_search_fore_data2()
2401 NJ_UINT16 abIdx_old; in bdic_search_fore_data2()
2402 NJ_UINT16 hindo_max, hindo_tmp; in bdic_search_fore_data2()
2404 NJ_UINT16 abIdx_current; in bdic_search_fore_data2()
2441 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) + in bdic_search_fore_data2()
2462 … hindo = (NJ_UINT16) *((NJ_UINT8 *) (HINDO_NO_TOP_ADDR(loctset->loct.handle) + in bdic_search_fore_data2()
2484 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) in bdic_search_fore_data2()
2506 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) + in bdic_search_fore_data2()
2523 hindo = (NJ_UINT16)*((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) + in bdic_search_fore_data2()
2725 NJ_UINT16 abIdx) in bdic_get_next_data()
2809 NJ_SEARCH_CACHE * psrhCache, NJ_UINT16 abIdx) in bdic_get_word_freq()