Lines Matching refs:loctset
73 static NJ_UINT16 search_data(NJ_SEARCH_CONDITION *condition, NJ_SEARCH_LOCATION_SET *loctset);
77 static NJ_UINT16 search_data(NJ_SEARCH_CONDITION *condition, NJ_SEARCH_LOCATION_SET *loctset)
87 offset = loctset->loct.current;
88 data = STEM_AREA_TOP_ADDR(loctset->loct.handle) + offset;
90 if (GET_LOCATION_STATUS(loctset->loct.status) != NJ_ST_SEARCH_NO_INIT) {
95 if (data >= STRS_AREA_TOP_ADDR(loctset->loct.handle)) {
97 loctset->loct.status = NJ_ST_SEARCH_END;
106 i = (STRS_AREA_TOP_ADDR(loctset->loct.handle) - data) / DATA_SIZE;
120 if (yomi_strcmp_forward(loctset->loct.handle, data, condition->yomi)) {
128 loctset->loct.current_info = CURRENT_INFO_SET;
129 loctset->loct.current = offset;
130 loctset->loct.status = NJ_ST_SEARCH_READY;
131 hindo = DATA_HINDO(STEM_AREA_TOP_ADDR(loctset->loct.handle) + loctset->loct.current);
132 loctset->cache_freq = CALCULATE_HINDO(hindo, loctset->dic_freq.base,
133 loctset->dic_freq.high, YOMINASI_DIC_FREQ_DIV);
145 loctset->loct.status = NJ_ST_SEARCH_END;
257 NJ_INT16 njd_f_search_word(NJ_SEARCH_CONDITION *con, NJ_SEARCH_LOCATION_SET *loctset)
267 loctset->loct.status = NJ_ST_SEARCH_END;
275 loctset->loct.status = NJ_ST_SEARCH_END;
282 loctset->loct.status = NJ_ST_SEARCH_END;
288 loctset->loct.status = NJ_ST_SEARCH_END;
295 loctset->loct.status = NJ_ST_SEARCH_END;
300 if ((GET_LOCATION_STATUS(loctset->loct.status) == NJ_ST_SEARCH_NO_INIT)
301 || (GET_LOCATION_STATUS(loctset->loct.status) == NJ_ST_SEARCH_READY)) {
303 ret = search_data(con, loctset);
306 loctset->loct.status = NJ_ST_SEARCH_END;
311 loctset->loct.status = NJ_ST_SEARCH_END;
316 NJ_INT16 njd_f_get_word(NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word)
324 if (GET_LOCATION_STATUS(loctset->loct.status) == NJ_ST_SEARCH_END) {
329 data = STEM_AREA_TOP_ADDR(loctset->loct.handle) + loctset->loct.current;
334 word->stem.loc = loctset->loct;
348 word->stem.hindo = CALCULATE_HINDO(DATA_HINDO(data), loctset->dic_freq.base,
349 loctset->dic_freq.high, YOMINASI_DIC_FREQ_DIV);