Lines Matching refs:NJ_UINT16
55 #define GET_UINT16(ptr) ((((NJ_UINT16)(*(ptr))) << 8) | (*((ptr) + 1) & 0x00ff))
57 #define GET_FPOS_FROM_DATA(x) ((NJ_UINT16)NJ_INT16_READ((x)+1) >> 7)
58 #define GET_YSIZE_FROM_DATA(x) ((NJ_UINT8)((NJ_UINT16)NJ_INT16_READ((x)+1) & 0x7F))
59 #define GET_BPOS_FROM_DATA(x) ((NJ_UINT16)NJ_INT16_READ((x)+3) >> 7)
60 #define GET_KSIZE_FROM_DATA(x) ((NJ_UINT8)((NJ_UINT16)NJ_INT16_READ((x)+3) & 0x7F))
61 #define GET_BPOS_FROM_EXT_DATA(x) ((NJ_UINT16)NJ_INT16_READ(x) >> 7)
62 #define GET_YSIZE_FROM_EXT_DATA(x) ((NJ_UINT8)((NJ_UINT16)NJ_INT16_READ(x) & 0x7F))
65 NJ_INT16_WRITE((x), ((NJ_UINT16)((bpos) << 7) | ((ysize) & 0x7F)))
67 NJ_INT16_WRITE(((x)+1), ((NJ_UINT16)((fpos) << 7) | ((ysize) & 0x7F)))
69 NJ_INT16_WRITE(((x)+3), ((NJ_UINT16)((bpos) << 7) | ((ksize) & 0x7F)))
110 static NJ_WQUE *get_que(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
111 static NJ_INT16 is_continued(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
112 static NJ_UINT16 search_next_que(NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
113 static NJ_INT16 que_strcmp_complete_with_hyouki(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_CHAR *yomi, NJ_UINT16 yomi_len, NJ_CHAR *hyouki, NJ_UINT8 multi_flg);
114 static NJ_CHAR *get_string(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_UINT8 *slen);
115 static NJ_CHAR *get_hyouki(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_UINT8 *slen);
118 static NJ_INT16 get_cand_by_evaluate2(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *cond, NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT8 search_pattern, NJ_UINT16 hIdx);
119 static NJ_INT16 search_range_by_yomi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, NJ_CHAR *yomi, NJ_UINT16 ylen, NJ_UINT16 *from, NJ_UINT16 *to, NJ_UINT8 *forward_flag);
120 static NJ_INT16 search_range_by_yomi2(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, NJ_CHAR *yomi, NJ_UINT16 ylen, NJ_UINT16 sfrom, NJ_UINT16 sto, NJ_UINT16 *from, NJ_UINT16 *to,
122 static NJ_INT16 search_range_by_yomi_multi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi, NJ_UINT16 ylen, NJ_UINT16 *from, NJ_UINT16 *to);
123 static NJ_INT16 str_que_cmp(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi, NJ_UINT16 yomiLen, NJ_UINT16 que_id, NJ_UINT8 mode);
124 static NJ_WQUE *get_que_type_and_next(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
125 static NJ_WQUE *get_que_allHinsi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
126 static NJ_WQUE *get_que_yomiLen_and_hyoukiLen(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
127 static NJ_INT16 continue_cnt(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
134 static NJ_INT16 que_strcmp_include(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_CHAR *yomi);
136 #define GET_LEARN_MAX_WORD_COUNT(h) ((NJ_UINT16)NJ_INT32_READ((h) + POS_MAX_WORD))
139 ((NJ_UINT16)NJ_INT32_READ((h) + POS_LEARN_WORD))
143 ((NJ_UINT16)NJ_INT32_READ((h) + POS_NEXT_QUE))
146 #define QUE_SIZE(h) ((NJ_UINT16)NJ_INT32_READ((h) + POS_QUE_SIZE))
148 #define COPY_UINT16(dst,src) (*(NJ_UINT16 *)(dst) = *(NJ_UINT16 *)(src))
161 NJ_UINT16 word_count;
164 NJ_UINT16 hIdx;
264 NJ_UINT16 que_id) {
293 NJ_UINT16 que_id) {
324 NJ_UINT16 que_id) {
352 static NJ_WQUE *get_que(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id) {
386 static NJ_INT16 is_continued(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id) {
388 NJ_UINT16 i;
389 NJ_UINT16 max, end;
433 static NJ_INT16 continue_cnt(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id) {
435 NJ_UINT16 i;
436 NJ_UINT16 max, end;
481 static NJ_UINT16 search_next_que(NJ_DIC_HANDLE handle, NJ_UINT16 que_id) {
482 NJ_UINT16 max;
483 NJ_UINT16 i;
506 NJ_UINT16 que_id, NJ_CHAR *yomi, NJ_UINT16 yomi_len, NJ_CHAR *hyouki,
511 NJ_UINT16 hyouki_len;
512 NJ_UINT16 que_yomilen, que_hyoukilen;
594 NJ_UINT16 que_id, NJ_CHAR *yomi) {
596 NJ_UINT16 que_len;
597 NJ_UINT16 yomi_len;
600 NJ_UINT16 i = 0;
681 NJ_UINT16 que_id, NJ_UINT8 *slen) {
687 NJ_UINT16 que_size;
767 NJ_UINT16 que_id, NJ_UINT8 *slen) {
775 NJ_UINT16 que_size;
927 NJ_UINT16 current, from, to;
928 NJ_UINT16 que_id;
957 current = (NJ_UINT16)(loctset->loct.current + 1);
1059 NJ_UINT16 from, to, i;
1060 NJ_UINT16 que_id, oldest;
1114 for (i = (NJ_UINT16NJ_UINT16)loctset->loct.bottom; i++) {
1197 NJ_CHAR *yomi, NJ_UINT16 len, NJ_UINT16 *from, NJ_UINT16 *to,
1199 NJ_UINT16 right, mid = 0, left, max;
1200 NJ_UINT16 que_id;
1256 if ((*forward_flag == 0) && (len <= (NJ_UINT16)slen)) {
1260 if (len > (NJ_UINT16)slen) {
1262 } else if (len < (NJ_UINT16)slen) {
1312 if (len > (NJ_UINT16)slen) {
1314 } else if (len < (NJ_UINT16)slen) {
1333 *from = (NJ_UINT16)cmp + 1;
1368 if (len > (NJ_UINT16)slen) {
1370 } else if (len < (NJ_UINT16)slen) {
1396 NJ_CHAR *yomi, NJ_UINT16 len, NJ_UINT16 *from, NJ_UINT16 *to) {
1397 NJ_UINT16 right, mid = 0, left, max = 0;
1398 NJ_UINT16 que_id;
1401 NJ_UINT16 comp_len;
1402 NJ_UINT16 i, char_len;
1496 *from = (NJ_UINT16)cmp + 1;
1532 NJ_UINT16 yomiLen, NJ_UINT16 que_id, NJ_UINT8 mode) {
1535 NJ_UINT16 yomiByte;
1536 NJ_UINT16 yomiPos;
1542 NJ_UINT16 que_size;
1657 NJ_UINT16 max;
1685 NJ_UINT16 que_id, oldest;
1688 NJ_UINT16 max;
1695 que_id = (NJ_UINT16)GET_UINT16(learn_index_top_addr +
1722 NJ_UINT16 que_id;
1730 que_id = (NJ_UINT16)GET_UINT16(learn_index_top_addr +
1767 NJ_INT16 njd_l_get_stroke(NJ_CLASS *iwnn, NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size) {
1768 NJ_UINT16 que_id;
1774 que_id = (NJ_UINT16)(word->stem.loc.current >> 16);
1779 if ((NJ_UINT16)((ylen+ NJ_TERM_LEN)*sizeof(NJ_CHAR)) > size) {
1805 NJ_CHAR *candidate, NJ_UINT16 size) {
1806 NJ_UINT16 que_id;
1808 NJ_UINT16 klen;
1812 que_id = (NJ_UINT16)(word->stem.loc.current >> 16);
1839 NJ_UINT16 flg;
1840 NJ_UINT16 word_cnt, max;
1842 NJ_UINT16 target_id;
1843 NJ_UINT16 i;
1844 NJ_UINT16 id1 = 0;
1935 NJ_UINT16 idx) {
1936 NJ_UINT16 from, to, i;
1937 NJ_UINT16 que_id, oldest;
1946 NJ_UINT16 abIdx;
1947 NJ_UINT16 abIdx_old;
1948 NJ_UINT16 tmp_len;
1949 NJ_UINT16 yomi_clen;
1950 NJ_UINT16 j,l,m;
1958 NJ_UINT16 endIdx;
1960 NJ_UINT16 addcnt = 0;
2124 (NJ_UINT16)(psrhCache->storebuff[m].top),
2125 (NJ_UINT16)(psrhCache->storebuff[m].bottom),
2166 (NJ_UINT16)(psrhCache->storebuff[m].top),
2167 (NJ_UINT16)(psrhCache->storebuff[m].bottom),
2249 for (i = (NJ_UINT16)psrhCache->storebuff[m].top; i <= (NJ_UINT16)psrhCache->storebuff[m].bottom; i++) {
2308 NJ_CHAR *yomi, NJ_UINT16 len,
2309 NJ_UINT16 sfrom, NJ_UINT16 sto,
2310 NJ_UINT16 *from, NJ_UINT16 *to,
2312 NJ_UINT16 right, mid = 0, left, max;
2313 NJ_UINT16 que_id;
2393 *from = (NJ_UINT16)cmp + 1;