Lines Matching refs:iwnn
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);
113 static NJ_INT16 que_strcmp_complete_with_hyouki(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que…
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);
116 static NJ_INT16 get_cand_by_sequential(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *cond, NJ_SEARCH_LOCATIO…
117 static NJ_INT16 get_cand_by_evaluate(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *cond, NJ_SEARCH_LOCATION_…
118 static NJ_INT16 get_cand_by_evaluate2(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *cond, NJ_SEARCH_LOCATION…
119 static NJ_INT16 search_range_by_yomi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, NJ_CHAR *yo…
120 static NJ_INT16 search_range_by_yomi2(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, NJ_CHAR *y…
122 static NJ_INT16 search_range_by_yomi_multi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi, NJ_…
123 static NJ_INT16 str_que_cmp(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi, NJ_UINT16 yomiLen,…
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_i…
127 static NJ_INT16 continue_cnt(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id);
131 static NJ_HINDO get_hindo(NJ_CLASS *iwnn, NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT8 search_pattern);
134 static NJ_INT16 que_strcmp_include(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_CHAR …
157 NJ_INT16 njd_l_search_word(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *con, in njd_l_search_word() argument
198 return get_cand_by_sequential(iwnn, con, loctset, con->operation, comp_flg); in njd_l_search_word()
204 return get_cand_by_sequential(iwnn, con, loctset, con->operation, 0); in njd_l_search_word()
223 return get_cand_by_evaluate(iwnn, con, loctset, con->operation); in njd_l_search_word()
225 ret = get_cand_by_evaluate2(iwnn, con, loctset, con->operation, hIdx); in njd_l_search_word()
229 ret = get_cand_by_evaluate2(iwnn, con, loctset, con->operation, hIdx); in njd_l_search_word()
250 return get_cand_by_sequential(iwnn, con, loctset, con->operation, 0); in njd_l_search_word()
253 return get_cand_by_evaluate(iwnn, con, loctset, con->operation); in njd_l_search_word()
263 static NJ_WQUE *get_que_type_and_next(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in get_que_type_and_next() argument
266 NJ_WQUE *que = &(iwnn->que_tmp); in get_que_type_and_next()
292 static NJ_WQUE *get_que_yomiLen_and_hyoukiLen(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in get_que_yomiLen_and_hyoukiLen() argument
295 NJ_WQUE *que = &(iwnn->que_tmp); in get_que_yomiLen_and_hyoukiLen()
323 static NJ_WQUE *get_que_allHinsi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in get_que_allHinsi() argument
326 NJ_WQUE *que = &(iwnn->que_tmp); in get_que_allHinsi()
352 static NJ_WQUE *get_que(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id) { in get_que() argument
354 NJ_WQUE *que = &(iwnn->que_tmp); in get_que()
386 static NJ_INT16 is_continued(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id) { in is_continued() argument
408 que = get_que_type_and_next(iwnn, handle, que_id); in is_continued()
410 if (iwnn->err_check_flg == 1) { in is_continued()
433 static NJ_INT16 continue_cnt(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id) { in continue_cnt() argument
456 que = get_que_type_and_next(iwnn, handle, que_id); in continue_cnt()
505 static NJ_INT16 que_strcmp_complete_with_hyouki(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in que_strcmp_complete_with_hyouki() argument
530 str = get_string(iwnn, handle, que_id, &slen); in que_strcmp_complete_with_hyouki()
543 str = get_hyouki(iwnn, handle, que_id, &slen); in que_strcmp_complete_with_hyouki()
568 ret = is_continued(iwnn, handle, que_id); in que_strcmp_complete_with_hyouki()
593 static NJ_INT16 que_strcmp_include(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in que_strcmp_include() argument
617 ret = is_continued(iwnn, handle, que_id); in que_strcmp_include()
629 str = get_string(iwnn, handle, que_id, &slen); in que_strcmp_include()
631 if (iwnn->err_check_flg == 2) { in que_strcmp_include()
680 static NJ_CHAR *get_string(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in get_string() argument
722 dst = (NJ_UINT8*)&(iwnn->learn_string_tmp[0]); in get_string()
761 iwnn->learn_string_tmp[*slen] = NJ_CHAR_NUL; in get_string()
763 return &(iwnn->learn_string_tmp[0]); in get_string()
766 static NJ_CHAR *get_hyouki(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in get_hyouki() argument
779 que = get_que_yomiLen_and_hyoukiLen(iwnn, handle, que_id); in get_hyouki()
804 hira = get_string(iwnn, handle, que_id, slen); in get_hyouki()
810 *slen = (NJ_UINT8)nje_convert_hira_to_kata(hira, &(iwnn->muhenkan_tmp[0]), *slen); in get_hyouki()
811 return &(iwnn->muhenkan_tmp[0]); in get_hyouki()
824 dst = (NJ_UINT8*)&(iwnn->learn_string_tmp[0]); in get_hyouki()
919 iwnn->learn_string_tmp[*slen] = NJ_CHAR_NUL; in get_hyouki()
921 return &(iwnn->learn_string_tmp[0]); in get_hyouki()
924 static NJ_INT16 get_cand_by_sequential(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *cond, in get_cand_by_sequential() argument
939 ret = search_range_by_yomi(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_sequential()
971 ret = str_que_cmp(iwnn, loctset->loct.handle, cond->yomi, cond->ylen, que_id, 1); in get_cand_by_sequential()
979 ret = str_que_cmp(iwnn, loctset->loct.handle, cond->yomi, cond->ylen, que_id, 2); in get_cand_by_sequential()
989 ret = que_strcmp_complete_with_hyouki(iwnn, loctset->loct.handle, que_id, in get_cand_by_sequential()
1000 num_count = continue_cnt(iwnn, loctset->loct.handle, que_id); in get_cand_by_sequential()
1012 loctset->cache_freq = get_hindo(iwnn, loctset, search_pattern); in get_cand_by_sequential()
1022 que = get_que_allHinsi(iwnn, loctset->loct.handle, que_id); in get_cand_by_sequential()
1030 ret = que_strcmp_include(iwnn, loctset->loct.handle, que_id, yomi); in get_cand_by_sequential()
1043 loctset->cache_freq = get_hindo(iwnn, loctset, search_pattern); in get_cand_by_sequential()
1057 static NJ_INT16 get_cand_by_evaluate(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *cond, in get_cand_by_evaluate() argument
1083 ret = search_range_by_yomi_multi(iwnn, loctset->loct.handle, in get_cand_by_evaluate()
1088 ret = search_range_by_yomi(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate()
1130 ret = que_strcmp_complete_with_hyouki(iwnn, loctset->loct.handle, que_id, in get_cand_by_evaluate()
1134 ret = str_que_cmp(iwnn, loctset->loct.handle, cond->yomi, cond->ylen, que_id, 2); in get_cand_by_evaluate()
1147 num_count = continue_cnt(iwnn, loctset->loct.handle, que_id); in get_cand_by_evaluate()
1167 que = get_que_allHinsi(iwnn, loctset->loct.handle, que_id); in get_cand_by_evaluate()
1190 loctset->cache_freq = get_hindo(iwnn, loctset, search_pattern); in get_cand_by_evaluate()
1196 static NJ_INT16 search_range_by_yomi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, in search_range_by_yomi() argument
1240 str = get_string(iwnn, handle, que_id, &slen); in search_range_by_yomi()
1243 if (iwnn->err_check_flg == 3) { in search_range_by_yomi()
1298 str = get_string(iwnn, handle, que_id, &slen); in search_range_by_yomi()
1301 if (iwnn->err_check_flg == 4) { in search_range_by_yomi()
1342 if (iwnn->err_check_flg == 5) { in search_range_by_yomi()
1354 str = get_string(iwnn, handle, que_id, &slen); in search_range_by_yomi()
1357 if (iwnn->err_check_flg == 5) { in search_range_by_yomi()
1395 static NJ_INT16 search_range_by_yomi_multi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, in search_range_by_yomi_multi() argument
1441 ret = str_que_cmp(iwnn, handle, comp_yomi, comp_len, que_id, 1); in search_range_by_yomi_multi()
1484 ret = str_que_cmp(iwnn, handle, comp_yomi, comp_len, que_id, 1); in search_range_by_yomi_multi()
1513 ret = str_que_cmp(iwnn, handle, yomi, len, que_id, 1); in search_range_by_yomi_multi()
1531 static NJ_INT16 str_que_cmp(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi, in str_que_cmp() argument
1546 if (iwnn->err_check_flg == 6) { in str_que_cmp()
1557 if (iwnn->err_check_flg == 7) { in str_que_cmp()
1614 if (iwnn->err_check_flg == 8) { in str_que_cmp()
1682 static NJ_HINDO get_hindo(NJ_CLASS *iwnn, NJ_SEARCH_LOCATION_SET *loctset, in get_hindo() argument
1704 que = get_que(iwnn, loctset->loct.handle, que_id); in get_hindo()
1720 NJ_INT16 njd_l_get_word(NJ_CLASS *iwnn, NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word) { in njd_l_get_word() argument
1738 que = get_que(iwnn, loctset->loct.handle, que_id); in njd_l_get_word()
1767 NJ_INT16 njd_l_get_stroke(NJ_CLASS *iwnn, NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size) { in njd_l_get_stroke() argument
1786 str = get_string(iwnn, word->stem.loc.handle, que_id, &slen); in njd_l_get_stroke()
1789 if (iwnn->err_check_flg == 9) { in njd_l_get_stroke()
1804 NJ_INT16 njd_l_get_candidate(NJ_CLASS *iwnn, NJ_WORD *word, in njd_l_get_candidate() argument
1821 str = get_hyouki(iwnn, word->stem.loc.handle, que_id, &slen); in njd_l_get_candidate()
1823 if (iwnn->err_check_flg == 10) { in njd_l_get_candidate()
1838 NJ_INT16 njd_l_check_dic(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle) { in njd_l_check_dic() argument
1911 if (get_hyouki(iwnn, handle, id1, &slen) == NULL) { in njd_l_check_dic()
1932 static NJ_INT16 get_cand_by_evaluate2(NJ_CLASS *iwnn, NJ_SEARCH_CONDITION *cond, in get_cand_by_evaluate2() argument
2018 ret = search_range_by_yomi(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2047 … ret = search_range_by_yomi(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2107 str = get_string(iwnn, loctset->loct.handle, que_id, &slen); in get_cand_by_evaluate2()
2122 ret = search_range_by_yomi2(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2164 … ret = search_range_by_yomi2(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2267 str = get_string(iwnn, loctset->loct.handle, que_id, &slen); in get_cand_by_evaluate2()
2274 que = get_que_allHinsi(iwnn, loctset->loct.handle, que_id); in get_cand_by_evaluate2()
2302 loctset->cache_freq = get_hindo(iwnn, loctset, search_pattern); in get_cand_by_evaluate2()
2307 static NJ_INT16 search_range_by_yomi2(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, in search_range_by_yomi2() argument
2340 str = get_string(iwnn, handle, que_id, &slen); in search_range_by_yomi2()
2379 str = get_string(iwnn, handle, que_id, &slen); in search_range_by_yomi2()
2409 str = get_string(iwnn, handle, que_id, &slen); in search_range_by_yomi2()