Lines Matching refs:ret

165     NJ_INT16     ret;  in njd_l_search_word()  local
225 ret = get_cand_by_evaluate2(iwnn, con, loctset, con->operation, hIdx); in njd_l_search_word()
226 if (ret == NJ_SET_ERR_VAL(NJ_FUNC_SEARCH_RANGE_BY_YOMI, NJ_ERR_CACHE_NOT_ENOUGH)) { in njd_l_search_word()
229 ret = get_cand_by_evaluate2(iwnn, con, loctset, con->operation, hIdx); in njd_l_search_word()
231 return ret; in njd_l_search_word()
509 NJ_INT16 ret; in que_strcmp_complete_with_hyouki() local
537 ret = nj_strncmp(yomi, str, que_yomilen); in que_strcmp_complete_with_hyouki()
538 if (ret != 0) { in que_strcmp_complete_with_hyouki()
550 ret = nj_strncmp(hyouki, str, que_hyoukilen); in que_strcmp_complete_with_hyouki()
551 if (ret != 0) { in que_strcmp_complete_with_hyouki()
568 ret = is_continued(iwnn, handle, que_id); in que_strcmp_complete_with_hyouki()
569 if (ret <= 0) { in que_strcmp_complete_with_hyouki()
571 return ret; in que_strcmp_complete_with_hyouki()
598 NJ_INT16 ret; in que_strcmp_include() local
617 ret = is_continued(iwnn, handle, que_id); in que_strcmp_include()
618 if (ret < 0) { in que_strcmp_include()
620 return ret; in que_strcmp_include()
621 } else if (ret == 0) { in que_strcmp_include()
649 ret = nj_strncmp(yomi, str, que_len); in que_strcmp_include()
650 if (ret != 0) { in que_strcmp_include()
930 NJ_INT16 ret, num_count; in get_cand_by_sequential() local
939 ret = search_range_by_yomi(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_sequential()
941 if (ret < 0) { in get_cand_by_sequential()
942 return ret; in get_cand_by_sequential()
944 if (ret == 0) { 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()
974 if (ret == 2) { in get_cand_by_sequential()
975 ret = 0; 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()
982 if (ret == 2) { in get_cand_by_sequential()
983 ret = 0; in get_cand_by_sequential()
989 ret = que_strcmp_complete_with_hyouki(iwnn, loctset->loct.handle, que_id, in get_cand_by_sequential()
993 if (ret < 0) { in get_cand_by_sequential()
994 return ret; in get_cand_by_sequential()
996 if (ret > 0) { in get_cand_by_sequential()
1007 if (num_count >= ret) { in get_cand_by_sequential()
1009 loctset->loct.current_info = (NJ_UINT8)(((num_count + 1) << 4) | ret); in get_cand_by_sequential()
1030 ret = que_strcmp_include(iwnn, loctset->loct.handle, que_id, yomi); in get_cand_by_sequential()
1031 if (ret < 0) { in get_cand_by_sequential()
1032 return ret; in get_cand_by_sequential()
1042 loctset->loct.current_info = (ret & 0x0f) << 4; in get_cand_by_sequential()
1064 NJ_INT16 ret, num_count; in get_cand_by_evaluate() local
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()
1091 if (ret <= 0) { in get_cand_by_evaluate()
1093 return ret; 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()
1136 if (ret == 2) { in get_cand_by_evaluate()
1137 ret = 0; in get_cand_by_evaluate()
1140 if (ret < 0) { in get_cand_by_evaluate()
1141 return ret; in get_cand_by_evaluate()
1143 if (ret >= 1) { in get_cand_by_evaluate()
1154 if (num_count >= ret) { in get_cand_by_evaluate()
1156 loctset->loct.current_info = (NJ_UINT8)(((num_count + 1) << 4) | ret); in get_cand_by_evaluate()
1203 NJ_INT16 ret = 0; in search_range_by_yomi() local
1251 ret = nj_strncmp(yomi, str, len); in search_range_by_yomi()
1255 if (ret == 0) { in search_range_by_yomi()
1261 ret = 1; in search_range_by_yomi()
1263 ret = -1; in search_range_by_yomi()
1268 printf(" [%d][%d][%d]COMPARE:[%s] = %d\n", left, mid, right, str, ret); in search_range_by_yomi()
1270 if (ret == 0) { in search_range_by_yomi()
1274 } else if (ret < 0) { in search_range_by_yomi()
1310 ret = nj_strncmp(yomi, str, len); in search_range_by_yomi()
1311 if (ret == 0) { in search_range_by_yomi()
1313 ret = 1; in search_range_by_yomi()
1315 ret = -1; in search_range_by_yomi()
1318 if (ret > 0) { in search_range_by_yomi()
1366 ret = nj_strncmp(yomi, str, len); in search_range_by_yomi()
1367 if (ret == 0) { in search_range_by_yomi()
1369 ret = 1; in search_range_by_yomi()
1371 ret = -1; in search_range_by_yomi()
1374 if (ret < 0) { in search_range_by_yomi()
1400 NJ_INT16 ret = 0; in search_range_by_yomi_multi() local
1441 ret = str_que_cmp(iwnn, handle, comp_yomi, comp_len, que_id, 1); in search_range_by_yomi_multi()
1442 if (ret < 0) { in search_range_by_yomi_multi()
1447 printf(" [%d][%d][%d]COMPARE:[%s] = %d\n", left, mid, right, str, ret); in search_range_by_yomi_multi()
1449 if (ret == 1) { in search_range_by_yomi_multi()
1453 } else if (ret == 0) { 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()
1485 if (ret < 0) { in search_range_by_yomi_multi()
1488 if (ret == 2) { in search_range_by_yomi_multi()
1513 ret = str_que_cmp(iwnn, handle, yomi, len, que_id, 1); in search_range_by_yomi_multi()
1514 if (ret < 0) { in search_range_by_yomi_multi()
1517 if (ret == 0) { in search_range_by_yomi_multi()
1941 NJ_INT16 ret = 0; in get_cand_by_evaluate2() local
2018 ret = search_range_by_yomi(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2021 if (ret < 0) { in get_cand_by_evaluate2()
2026 return ret; in get_cand_by_evaluate2()
2027 } else if (ret > 0) { in get_cand_by_evaluate2()
2047ret = search_range_by_yomi(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2049 if (ret < 0) { in get_cand_by_evaluate2()
2054 return ret; in get_cand_by_evaluate2()
2055 } else if (ret > 0) { in get_cand_by_evaluate2()
2122 ret = search_range_by_yomi2(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2127 if (ret < 0) { in get_cand_by_evaluate2()
2132 return ret; in get_cand_by_evaluate2()
2133 } else if (ret > 0) { in get_cand_by_evaluate2()
2164ret = search_range_by_yomi2(iwnn, loctset->loct.handle, search_pattern, in get_cand_by_evaluate2()
2169 if (ret < 0) { in get_cand_by_evaluate2()
2174 return ret; in get_cand_by_evaluate2()
2175 } else if (ret > 0) { in get_cand_by_evaluate2()
2316 NJ_INT16 ret = 0; in search_range_by_yomi2() local
2346 ret = nj_strncmp(yomi, str, len); in search_range_by_yomi2()
2349 printf(" [%d][%d][%d]COMPARE:[%s] = %d\n", left, mid, right, str, ret); in search_range_by_yomi2()
2351 if (ret == 0) { in search_range_by_yomi2()
2355 } else if (ret < 0) { in search_range_by_yomi2()