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