Home | History | Annotate | Download | only in engine

Lines Matching full:stem_set

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