Home | History | Annotate | Download | only in engine

Lines Matching refs:NJ_UINT8

24 #define NODE_TERM(x) ((NJ_UINT8)(0x80 & (*(x))))
25 #define NODE_LEFT_EXIST(x) ((NJ_UINT8)(0x40 & (*(x))))
26 #define NODE_DATA_EXIST(x) ((NJ_UINT8)(0x20 & (*(x))))
27 #define NODE_IDX_EXIST(x) ((NJ_UINT8)(0x10 & (*(x))))
28 #define NODE_IDX_CNT(x) ((NJ_UINT8)((0x0f & (*(x))) + 2))
30 #define STEM_TERMINETER(x) ((NJ_UINT8)(0x80 & (*(x))))
32 #define STEM_NO_CONV_FLG(x) ((NJ_UINT8)(0x40 & (*(x))))
37 #define APPEND_YOMI_FLG(h) ((NJ_UINT8)(0x80 & (*((h) + 0x1C))))
38 #define HINSI_NO_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x1D)))
41 #define HINSI_NO_BYTE(h) ((NJ_UINT8)(*((h) + 0x25)))
42 #define HINDO_NO_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x26)))
43 #define HINDO_NO_CNT(h) ((NJ_UINT8)(*((h) + 0x2A)))
44 #define STEM_AREA_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x2B)))
45 #define BIT_CANDIDATE_LEN(h) ((NJ_UINT8)(*((h) + 0x2F)))
46 #define BIT_FHINSI(h) ((NJ_UINT8)(*((h) + 0x30)))
47 #define BIT_BHINSI(h) ((NJ_UINT8)(*((h) + 0x31)))
48 #define BIT_HINDO_LEN(h) ((NJ_UINT8)(*((h) + 0x32)))
49 #define BIT_MUHENKAN_LEN(h) ((NJ_UINT8)(*((h) + 0x33)))
50 #define BIT_YOMI_LEN(h) ((NJ_UINT8)(*((h) + 0x35)))
51 #define YOMI_INDX_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x42)))
54 #define NODE_AREA_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x48)))
55 #define BIT_NODE_AREA_DATA_LEN(h) ((NJ_UINT8)(*((h) + 0x4C)))
56 #define BIT_NODE_AREA_LEFT_LEN(h) ((NJ_UINT8)(*((h) + 0x4D)))
58 #define CAND_IDX_AREA_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x52)))
60 #define CAND_IDX_AREA_SIZE(h) ((NJ_UINT8)(*((h) + 0x59)))
64 #define CURRENT_INFO_SET ((NJ_UINT8)(0x10))
84 static NJ_INT16 get_stem_next(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data);
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);
88 static NJ_UINT16 get_stem_yomi_size(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_UINT16 yomi_size);
89 static NJ_UINT16 get_stem_yomi_string(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_CHAR *yomi, NJ_UINT16 yomi_pos, NJ_UINT16 yomi_size, NJ_UINT16 size);
94 static NJ_HINDO get_stem_hindo(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data);
100 static NJ_INT16 search_yomi_node(NJ_UINT8 operation, NJ_UINT8 *node,
101 NJ_UINT8 *now, NJ_UINT16 idx_no,
103 NJ_UINT8 *root, NJ_UINT8 *node_mid,
105 NJ_UINT8 *data_top,
107 NJ_UINT8 *ytbl_top, NJ_CACHE_INFO *storebuf,
108 NJ_UINT8 **con_node, NJ_UINT32 *data_offset);
109 static NJ_INT16 get_node_bottom(NJ_CHAR *yomi, NJ_UINT8 *now, NJ_UINT8 *node_mid,
110 NJ_UINT8 *data_top, NJ_UINT16 bit_left,
113 static NJ_INT16 bdic_get_next_data(NJ_UINT8 *data_top, NJ_UINT8 *data_end,
116 static NJ_INT16 bdic_get_word_freq(NJ_UINT8 *data_top, NJ_SEARCH_LOCATION_SET *loctset,
119 static NJ_HINDO get_stem_hindo(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data)
121 NJ_UINT8 flg_bit;
148 static NJ_INT16 get_stem_next(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data)
150 NJ_UINT8 flg_bit;
209 static void get_stem_word(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, STEM_DATA_SET *stem_set, NJ_UINT8 check)
211 NJ_UINT8 flg_bit;
217 NJ_UINT8 b;
218 NJ_UINT8 *wkc;
261 wkc = (NJ_UINT8*)(HINSI_NO_TOP_ADDR(hdl) + (b * (NJ_UINT16)(stem_set->fhinsi)));
285 wkc = (NJ_UINT8*)(HINSI_NO_TOP_ADDR(hdl)
349 static void get_stem_cand_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, STEM_DATA_SET *stem_set)
351 NJ_UINT8 flg_bit;
390 static NJ_UINT16 get_stem_yomi_data(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data,STEM_DATA_SET *stem_set)
447 static NJ_UINT16 get_stem_yomi_size(NJ_DIC_HANDLE hdl, NJ_UINT8 *ydata, NJ_UINT16 yomi_size)
451 NJ_UINT8 *ytbl_top;
452 NJ_UINT8 *ytbl;
453 NJ_UINT8 yidx;
486 static NJ_UINT16 get_stem_yomi_string(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_CHAR *yomi, NJ_UINT16 yomi_pos, NJ_UINT16 yomi_size, NJ_UINT16 size)
490 NJ_UINT8 *ytbl_top, *ytbl;
491 NJ_UINT8 *ydata;
492 NJ_UINT8 yidx;
539 nj_memcpy((NJ_UINT8*)yomi, ydata, yomi_size);
552 NJ_UINT8 *root, *now, *node, *node_mid;
553 NJ_UINT8 index;
554 NJ_UINT8 *byomi;
555 NJ_UINT8 *wkc;
556 NJ_UINT8 idx_no;
562 NJ_UINT8 c1 = 0, c2 = 0;
565 NJ_UINT8 *ytbl_top;
573 NJ_UINT8 restart_flg = 0;
574 NJ_UINT8 bottom_flg = 0;
575 NJ_UINT8 *data_top, *stem_data;
582 byomi = (NJ_UINT8*)(condition->yomi);
683 index = (NJ_UINT8)idx;
726 if (index == (NJ_UINT8)nd_index) {
730 if ((!NODE_TERM(now)) && (index > (NJ_UINT8)nd_index) && (idx_no == 0)) {
740 (index < (NJ_UINT8)nd_index) && (idx_no == 0) &&
958 hindo = (NJ_UINT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle)
974 hindo = (NJ_UINT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle)
1000 NJ_UINT8 *data, *data_end;
1037 hindo = (NJ_UINT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle) +
1050 NJ_UINT8 *data, *data_top, *bottom, *data_end;
1054 NJ_UINT8 no_hit = 0;
1056 NJ_UINT8 *current_org;
1130 hindo = (NJ_INT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle) + get_stem_hindo(loctset->loct.handle, data)));
1167 hindo = (NJ_INT16) *((NJ_UINT8*)(HINDO_NO_TOP_ADDR(loctset->loct.handle)
1324 NJ_UINT8 *data;
1326 NJ_UINT8 check;
1392 NJ_UINT8 *wkd;
1393 NJ_UINT8 *data;
1394 NJ_UINT8 *data_org;
1486 NJ_UINT8 *data;
1541 NJ_UINT8 *root, *now, *node, *node_mid;
1546 NJ_UINT8 *ytbl_top;
1551 NJ_UINT8 *data_top, *stem_data;
1558 NJ_UINT8 cmpflg;
1559 NJ_UINT8 endflg;
1571 NJ_UINT8 *con_node;
1573 NJ_UINT8 aimai_flg = 0x01;
1911 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) +
1932 hindo = (NJ_UINT16) *((NJ_UINT8 *) (HINDO_NO_TOP_ADDR(loctset->loct.handle) +
1952 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle)
1966 loctset->loct.current_cache = (NJ_UINT8)abIdx_current;
1975 static NJ_INT16 search_yomi_node(NJ_UINT8 operation, NJ_UINT8 *node, NJ_UINT8 *now,
1977 NJ_UINT8 * root, NJ_UINT8 * node_mid,
1979 NJ_UINT8 * data_top,
1980 NJ_INT16 ytbl_cnt, NJ_UINT16 y, NJ_UINT8 * ytbl_top,
1982 NJ_UINT8 ** con_node,
1986 NJ_UINT8 index;
1987 NJ_UINT8 *wkc;
1988 NJ_UINT8 *byomi;
1993 NJ_UINT8 c1 = 0, c2 = 0;
2000 NJ_UINT8 restart_flg = 0;
2009 byomi = (NJ_UINT8*)yomi;
2080 index = (NJ_UINT8) idx;
2121 if (index == (NJ_UINT8) nd_index) {
2125 if ((!NODE_TERM(now)) && (index > (NJ_UINT8) nd_index) && (idx_no == 0)) {
2135 && (index < (NJ_UINT8) nd_index) && (idx_no == 0)
2250 static NJ_INT16 get_node_bottom(NJ_CHAR * yomi, NJ_UINT8 * now, NJ_UINT8 * node_mid,
2251 NJ_UINT8 * data_top, NJ_UINT16 bit_left, NJ_UINT16 bit_data,
2255 NJ_UINT8 *node;
2260 NJ_UINT8 bottom_flg = 0;
2261 NJ_UINT8 *stem_data;
2379 NJ_UINT8 *data, *data_top, *bottom, *data_end;
2392 NJ_UINT8 freq_flag = 0;
2441 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) +
2462 hindo = (NJ_UINT16) *((NJ_UINT8 *) (HINDO_NO_TOP_ADDR(loctset->loct.handle) +
2484 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle)
2498 loctset->loct.current_cache = (NJ_UINT8)abIdx_current;
2506 hindo = (NJ_UINT16) *((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) +
2523 hindo = (NJ_UINT16)*((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle) +
2602 loctset->loct.current_cache = (NJ_UINT8)old_abIdx;
2643 loctset->loct.current_cache = (NJ_UINT8)current_abIdx;
2675 loctset->loct.current_cache = (NJ_UINT8)current_abIdx;
2686 loctset->loct.current_cache = (NJ_UINT8)save_abIdx;
2708 hindo = (NJ_INT16)*((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle)
2722 static NJ_INT16 bdic_get_next_data(NJ_UINT8 *data_top, NJ_UINT8 *data_end,
2727 NJ_UINT8 *data, *bottom;
2731 NJ_UINT8 no_hit = 0;
2733 NJ_UINT8 *current_org;
2784 hindo = (NJ_INT16)*((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle)
2808 static NJ_INT16 bdic_get_word_freq(NJ_UINT8 * data_top, NJ_SEARCH_LOCATION_SET * loctset,
2811 NJ_UINT8 *data;
2820 hindo = (NJ_INT16)*((NJ_UINT8 *)(HINDO_NO_TOP_ADDR(loctset->loct.handle)