Lines Matching refs:cond
54 if (cursor->cond.ds == NULL) { in check_search_cursor()
61 dicinfo = &(cursor->cond.ds->dic[i]); in check_search_cursor()
84 if (cursor->cond.yomi == NULL) { in check_search_cursor()
89 if (cursor->cond.ylen > NJ_MAX_LEN) { in check_search_cursor()
94 if (cursor->cond.operation == NJ_CUR_OP_LINK) { in check_search_cursor()
96 } else if (cursor->cond.kanji != NULL) { in check_search_cursor()
98 if (nj_strlen(cursor->cond.kanji) > NJ_MAX_RESULT_LEN) { in check_search_cursor()
103 switch (cursor->cond.operation) { in check_search_cursor()
112 switch (cursor->cond.mode) { in check_search_cursor()
153 ret = njd_b_search_word(&cursor->cond, loctset); in search_word()
157 ret = njd_l_search_word(iwnn, &cursor->cond, loctset, comp_flg); in search_word()
161 ret = njd_f_search_word(&cursor->cond, loctset); in search_word()
224 tmp_word.yomi = cursor->cond.yomi; in get_word_and_search_next_word()
225 tmp_word.stem.info1 = cursor->cond.ylen; in get_word_and_search_next_word()
226 tmp_result.word.yomi = cursor->cond.yomi; in get_word_and_search_next_word()
227 tmp_result.word.stem.info1 = cursor->cond.ylen; in get_word_and_search_next_word()
233 loctset->loct.status |= SET_LOCATION_OPERATION(cursor->cond.operation); in get_word_and_search_next_word()
234 if (cursor->cond.mode == NJ_CUR_MODE_FREQ) { in get_word_and_search_next_word()
235 if ((cursor->cond.ds->mode & (NJ_CACHE_MODE_VALID)) && in get_word_and_search_next_word()
236 (cursor->cond.ds->dic[i].srhCache != NULL) && in get_word_and_search_next_word()
237 (NJ_GET_AIMAI_FROM_SCACHE(cursor->cond.ds->dic[i].srhCache)) && in get_word_and_search_next_word()
238 (cursor->cond.operation == NJ_CUR_OP_FORE)) { in get_word_and_search_next_word()
241 … ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &tmp_result.word); in get_word_and_search_next_word()
254 for (j = 0; j < cursor->cond.ylen; j++) { in get_word_and_search_next_word()
255 if (cursor->cond.yomi[j] != tmp_stroke[j]) { in get_word_and_search_next_word()
267 ret = njd_b_search_word(&cursor->cond, loctset); in get_word_and_search_next_word()
272 ret = njd_l_search_word(iwnn, &cursor->cond, loctset, comp_flg); in get_word_and_search_next_word()
283 … ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &tmp_result.word); in get_word_and_search_next_word()
287 j = cursor->cond.ylen; in get_word_and_search_next_word()
304 … ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &(tmp_result.word)); in get_word_and_search_next_word()
338 (cursor->cond.ds->dic[next].srhCache == NULL))) { in get_word_and_search_next_word()
349 ret = njd_b_search_word(&cursor->cond, loctset); in get_word_and_search_next_word()
354 ret = njd_l_search_word(iwnn, &cursor->cond, loctset, comp_flg); in get_word_and_search_next_word()
358 ret = njd_f_search_word(&cursor->cond, loctset); in get_word_and_search_next_word()
697 cursor->cond.hinsi.fore = NULL; in njx_search_word()
698 cursor->cond.hinsi.foreSize = 0; in njx_search_word()
699 cursor->cond.hinsi.foreFlag = 0; in njx_search_word()
700 cursor->cond.hinsi.rear = NULL; in njx_search_word()
701 cursor->cond.hinsi.rearSize = 0; in njx_search_word()
702 cursor->cond.hinsi.rearFlag = 0; in njx_search_word()
705 if (cursor->cond.yomi == NULL) { in njx_search_word()
708 cursor->cond.ylen = nj_strlen(cursor->cond.yomi); in njx_search_word()
709 cursor->cond.yclen = nj_charlen(cursor->cond.yomi); in njx_search_word()
712 if (cursor->cond.ds == NULL) { in njx_search_word()
717 cursor->cond.ds->mode = NJ_CACHE_MODE_VALID; in njx_search_word()
719 p_yomi = cursor->cond.yomi; in njx_search_word()
720 p_key = cursor->cond.ds->keyword; in njx_search_word()
722 for (clrcnt = 0; clrcnt < cursor->cond.yclen; clrcnt++) { in njx_search_word()
735 kw_len = nj_charlen(cursor->cond.ds->keyword); in njx_search_word()
736 if (kw_len >= cursor->cond.yclen) { in njx_search_word()
739 inited = cursor->cond.yclen + 1; in njx_search_word()
743 pCache = cursor->cond.ds->dic[diccnt].srhCache; in njx_search_word()
788 nj_strcpy(cursor->cond.ds->keyword, cursor->cond.yomi); in njx_search_word()
791 dhdl = cursor->cond.ds->dic[cnt].handle; in njx_search_word()
794 if ((cursor->cond.ds->dic[cnt].dic_freq[NJ_MODE_TYPE_HENKAN].base in njx_search_word()
795 > cursor->cond.ds->dic[cnt].dic_freq[NJ_MODE_TYPE_HENKAN].high)) { in njx_search_word()
802 cursor->cond.hinsi.yominasi_fore = NULL; in njx_search_word()
807 njd_r_get_connect(cursor->cond.ds->rHandle[NJ_MODE_TYPE_HENKAN], prev_hinsi, in njx_search_word()
808 0, &(cursor->cond.hinsi.yominasi_fore)); in njx_search_word()
809 njd_r_get_count(cursor->cond.ds->rHandle[NJ_MODE_TYPE_HENKAN], in njx_search_word()
810 &(cursor->cond.hinsi.foreSize), &(cursor->cond.hinsi.rearSize)); in njx_search_word()