Lines Matching refs:stem_set
85 static void get_stem_word(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, STEM_DATA_SET *stem_set, NJ_UINT8…
86 static void get_stem_cand_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, STEM_DATA_SET *stem_set);
87 static NJ_UINT16 get_stem_yomi_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data,STEM_DATA_SET *stem_set);
209 static void get_stem_word(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, STEM_DATA_SET *stem_set, NJ_UINT8… in get_stem_word() argument
236 stem_set->hindo = GET_BITFIELD_16(data, j, BIT_HINDO_LEN(hdl)); in get_stem_word()
239 stem_set->hindo = 0; in get_stem_word()
242 stem_set->hindo_jitu = (NJ_UINT16)(*(HINDO_NO_TOP_ADDR(hdl) + stem_set->hindo)); in get_stem_word()
254 stem_set->fhinsi = GET_BITFIELD_16(data, j, BIT_FHINSI(hdl)); in get_stem_word()
256 stem_set->fhinsi = 0; in get_stem_word()
261 wkc = (NJ_UINT8*)(HINSI_NO_TOP_ADDR(hdl) + (b * (NJ_UINT16)(stem_set->fhinsi))); in get_stem_word()
265 stem_set->fhinsi_jitu = (NJ_UINT16)(NJ_INT16_READ(wkc)); in get_stem_word()
267 stem_set->fhinsi_jitu = (NJ_UINT16)*wkc; in get_stem_word()
280 stem_set->bhinsi = GET_BITFIELD_16(data, j, BIT_BHINSI(hdl)); in get_stem_word()
282 stem_set->bhinsi = 0; in get_stem_word()
286 + (b * (FHINSI_NO_CNT(hdl) + (NJ_UINT16)(stem_set->bhinsi)))); in get_stem_word()
289 stem_set->bhinsi_jitu = (NJ_UINT16)(NJ_INT16_READ(wkc)); in get_stem_word()
291 stem_set->bhinsi_jitu = (NJ_UINT16)*wkc; in get_stem_word()
309 stem_set->candidate_size = GET_BITFIELD_16(data, j, bit); in get_stem_word()
314 stem_set->yomi_size = 0; in get_stem_word()
325 stem_set->yomi_size = GET_BITFIELD_16(data, j, bit); in get_stem_word()
331 dpos += stem_set->candidate_size; in get_stem_word()
339 dpos = get_stem_yomi_data(hdl, stem_data, stem_set); in get_stem_word()
342 if (stem_set->yomi_size) { in get_stem_word()
344 stem_set->yomi_size = get_stem_yomi_size(hdl, stem_data + dpos, stem_set->yomi_size); in get_stem_word()
349 static void get_stem_cand_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, STEM_DATA_SET *stem_set) in get_stem_cand_data() argument
376 stem_set->candidate_size = GET_BITFIELD_16(data, j, cand_bit); in get_stem_cand_data()
387 stem_set->stem_size = GET_BIT_TO_BYTE(bit_all); in get_stem_cand_data()
390 static NJ_UINT16 get_stem_yomi_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data,STEM_DATA_SET *stem_set) in get_stem_yomi_data() argument
433 stem_set->yomi_size = GET_BITFIELD_16(data, j, yomi_bit); in get_stem_yomi_data()
436 stem_set->yomi_size = 0; in get_stem_yomi_data()
1325 STEM_DATA_SET stem_set; in njd_b_get_word() local
1353 get_stem_word(loctset->loct.handle, data, &stem_set, check); in njd_b_get_word()
1356 word->stem.info1 = (NJ_UINT16)(stem_set.yomi_size / sizeof(NJ_CHAR)); in njd_b_get_word()
1359 word->stem.info1 |= (NJ_UINT16)(stem_set.fhinsi_jitu << 7); in njd_b_get_word()
1362 if (stem_set.candidate_size == 0) { in njd_b_get_word()
1365 word->stem.info2 = (NJ_UINT16)(stem_set.yomi_size / sizeof(NJ_CHAR)); in njd_b_get_word()
1372 word->stem.info2 = (NJ_UINT16)(stem_set.candidate_size / sizeof(NJ_CHAR)); in njd_b_get_word()
1380 word->stem.info2 |= (NJ_UINT16)(stem_set.bhinsi_jitu << 7); in njd_b_get_word()
1381 word->stem.hindo = CALCULATE_HINDO(stem_set.hindo_jitu, loctset->dic_freq.base, in njd_b_get_word()
1396 STEM_DATA_SET stem_set; in njd_b_get_candidate() local
1413 get_stem_cand_data(loc->handle, data, &stem_set); in njd_b_get_candidate()
1414 len = stem_set.candidate_size / sizeof(NJ_CHAR); in njd_b_get_candidate()
1441 yomi_pos = get_stem_yomi_data(loc->handle, data, &stem_set); in njd_b_get_candidate()
1446 yomi_pos, stem_set.yomi_size, in njd_b_get_candidate()
1467 if (size < (stem_set.candidate_size + (NJ_TERM_LEN*sizeof(NJ_CHAR)))) { in njd_b_get_candidate()
1471 wkd = data + stem_set.stem_size; in njd_b_get_candidate()
1490 STEM_DATA_SET stem_set; in njd_b_get_stroke() local
1519 yomi_pos = get_stem_yomi_data(loc->handle, data, &stem_set); in njd_b_get_stroke()
1520 if (stem_set.yomi_size == 0) { in njd_b_get_stroke()
1527 yomi_pos, stem_set.yomi_size, in njd_b_get_stroke()