Home
last modified time | relevance | path

Searched refs:NJ_CHAR (Results 1 – 13 of 13) sorted by relevance

/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dnj_str.c21 NJ_CHAR *nj_strcpy(NJ_CHAR *dst, NJ_CHAR *src) { in nj_strcpy()
23 NJ_CHAR *ret = dst; in nj_strcpy()
33 NJ_CHAR *nj_strncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { in nj_strncpy()
35 NJ_CHAR *d = dst; in nj_strncpy()
53 NJ_UINT16 nj_strlen(NJ_CHAR *c) { in nj_strlen()
64 NJ_INT16 nj_strcmp(NJ_CHAR *s1, NJ_CHAR *s2) { in nj_strcmp()
76 NJ_INT16 nj_strncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_strncmp()
90 NJ_UINT16 nj_charlen(NJ_CHAR *c) { in nj_charlen()
102 NJ_INT16 nj_charncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_charncmp()
122 NJ_CHAR *nj_charncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { in nj_charncpy()
[all …]
Dndfdic.c74 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, …
75 static NJ_UINT16 yomi_strcmp_forward(NJ_DIC_HANDLE hdl, NJ_UINT8 *data, NJ_CHAR *yomi);
151 static NJ_UINT16 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, … in convert_to_yomi()
154 NJ_CHAR *wky; in convert_to_yomi()
179 if (((ret + char_len + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi()
180 return (size / sizeof(NJ_CHAR)); in convert_to_yomi()
189 if (((ret + 1 + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi()
190 return (size / sizeof(NJ_CHAR)); in convert_to_yomi()
192 *wky++ = (NJ_CHAR)(*(wkc + idx)); in convert_to_yomi()
201 static NJ_UINT16 yomi_strcmp_forward(NJ_DIC_HANDLE hdl, NJ_UINT8 *data, NJ_CHAR *yomi) in yomi_strcmp_forward()
[all …]
Dndldic.c113 …J_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_CHAR *yomi, NJ_UINT16 yomi_len, NJ_CHAR
114 static NJ_CHAR *get_string(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_UINT8 *slen);
115 static NJ_CHAR *get_hyouki(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_UINT8 *slen);
119 static NJ_INT16 search_range_by_yomi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, NJ_CHAR *yo…
120 static NJ_INT16 search_range_by_yomi2(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT8 op, NJ_CHAR *y…
122 static NJ_INT16 search_range_by_yomi_multi(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi, NJ_…
123 static NJ_INT16 str_que_cmp(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi, NJ_UINT16 yomiLen,…
134 static NJ_INT16 que_strcmp_include(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_UINT16 que_id, NJ_CHAR
306 que->yomi_len = que->yomi_byte / sizeof(NJ_CHAR); in get_que_yomiLen_and_hyoukiLen()
308 que->hyouki_len = que->hyouki_byte / sizeof(NJ_CHAR); in get_que_yomiLen_and_hyoukiLen()
[all …]
Dndbdic.c89 static NJ_UINT16 get_stem_yomi_string(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_CHAR *yomi, NJ_UIN…
102 NJ_CHAR *yomi, NJ_UINT16 yomilen,
109 static NJ_INT16 get_node_bottom(NJ_CHAR *yomi, NJ_UINT8 *now, NJ_UINT8 *node_mid,
479 return len * sizeof(NJ_CHAR); in get_stem_yomi_size()
486 static NJ_UINT16 get_stem_yomi_string(NJ_DIC_HANDLE hdl, NJ_UINT8 *stem_data, NJ_CHAR *yomi, NJ_UIN… in get_stem_yomi_string()
515 if (((copy_len + char_len + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in get_stem_yomi_string()
522 ytbl += sizeof(NJ_CHAR); in get_stem_yomi_string()
526 if (((copy_len + 1 + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in get_stem_yomi_string()
530 *(yomi + copy_len) = (NJ_CHAR)(*ytbl); in get_stem_yomi_string()
535 if ((yomi_size + (NJ_TERM_LEN * sizeof(NJ_CHAR))) > size) { in get_stem_yomi_string()
[all …]
Dndapi.c192 NJ_CHAR tmp_stroke[NJ_MAX_LEN + NJ_TERM_LEN]; in get_word_and_search_next_word()
193 NJ_CHAR result_stroke[NJ_MAX_LEN + NJ_TERM_LEN]; in get_word_and_search_next_word()
480 NJ_INT16 njd_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *stroke, NJ_UINT16 size) { in njd_get_stroke()
504 if (size < ((len + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { in njd_get_stroke()
539 NJ_CHAR *candidate, NJ_UINT16 size) { in njd_get_candidate()
616 if (NJ_INT32_READ(addr) > (NJ_MAX_LEN * sizeof(NJ_CHAR))) { in njd_check_dic()
622 if (NJ_INT32_READ(addr) > (NJ_MAX_RESULT_LEN * sizeof(NJ_CHAR))) { in njd_check_dic()
677 NJ_CHAR *p_yomi, *p_key; in njx_search_word()
Dnecode.c39 NJ_INT16 nje_convert_hira_to_kata(NJ_CHAR *hira, NJ_CHAR *kata, NJ_UINT16 len) in nje_convert_hira_to_kata()
Dneapi.c70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf… in njx_get_candidate()
100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_si… in njx_get_stroke()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
Dnj_ext.h85 NJ_CHAR *stroke, NJ_UINT16 size);
87 NJ_CHAR *candidate, NJ_UINT16 size);
94 extern NJ_INT16 njd_b_get_candidate(NJ_WORD *word, NJ_CHAR *candidate,
96 extern NJ_INT16 njd_b_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size);
101 extern NJ_INT16 njd_f_get_stroke(NJ_WORD *word, NJ_CHAR *stroke,
103 extern NJ_INT16 njd_f_get_candidate(NJ_WORD *word, NJ_CHAR *candidate,
115 NJ_CHAR *stroke, NJ_UINT16 size);
117 NJ_CHAR *candidate, NJ_UINT16 size);
138 extern NJ_UINT16 nje_check_string(NJ_CHAR *s, NJ_UINT16 max_len);
139 extern NJ_UINT8 nje_get_top_char_type(NJ_CHAR *s);
[all …]
Dnj_lib.h29 typedef unsigned short NJ_CHAR; typedef
106 #define NJ_USER_QUE_SIZE (((NJ_MAX_USER_LEN + NJ_MAX_USER_KOUHO_LEN) * sizeof(NJ_CHAR)) + 5)
169 NJ_CHAR keyword[NJ_MAX_KEYWORD];
174 NJ_CHAR *from[NJ_MAX_CHARSET];
175 NJ_CHAR *to[NJ_MAX_CHARSET];
202 NJ_CHAR *yomi;
205 NJ_CHAR *kanji;
243 NJ_CHAR yomi[NJ_MAX_LEN + NJ_TERM_LEN];
244 NJ_CHAR kouho[NJ_MAX_RESULT_LEN + NJ_TERM_LEN];
268 NJ_CHAR *yomi;
[all …]
Dnjx_lib.h28 NJ_CHAR yomi[NJ_MAX_LEN +NJ_TERM_LEN];
29 NJ_CHAR hyouki[NJ_MAX_RESULT_LEN + NJ_TERM_LEN];
70 NJ_CHAR learn_string_tmp[NJ_MAX_RESULT_LEN + NJ_TERM_LEN];
72 NJ_CHAR muhenkan_tmp[NJ_MAX_RESULT_LEN + NJ_TERM_LEN];
Dnj_dic.h70 #define NJ_GET_MAX_YLEN(h) ((NJ_INT16)(NJ_INT16_READ((h)+0x16)/sizeof(NJ_CHAR)))
72 #define NJ_GET_MAX_KLEN(h) ((NJ_INT16)(NJ_INT16_READ((h)+0x1A)/sizeof(NJ_CHAR)))
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
DOpenWnnJni.h66 NJ_CHAR keyString[ NJ_MAX_LEN + NJ_TERM_LEN ];
73 NJ_CHAR approxStr[ NJ_MAX_CHARSET * NJ_APPROXSTORE_SIZE ];
74 NJ_CHAR previousStroke[ NJ_MAX_LEN + NJ_TERM_LEN ];
75 NJ_CHAR previousCandidate[ NJ_MAX_RESULT_LEN + NJ_TERM_LEN ];
DOpenWnnDictionaryImplJni.c45 static NJ_CHAR convertUTFCharToNjChar( NJ_UINT8* src ) in convertUTFCharToNjChar()
47 NJ_CHAR ret; in convertUTFCharToNjChar()
58 static int convertStringToNjChar( JNIEnv *env, NJ_CHAR* dst, jstring srcJ, int maxChars ) in convertStringToNjChar()
136 static int convertNjCharToString( JNIEnv* env, jstring* dstJ, NJ_CHAR* src, int maxChars ) in convertNjCharToString()
506 NJ_CHAR stroke[ NJ_MAX_LEN + NJ_TERM_LEN ]; in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getStroke()
508 …if( njx_get_stroke( &( work->wnnClass ), &( work->result ), stroke, sizeof( NJ_CHAR ) * ( NJ_MAX_L… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getStroke()
514 if( convertNjCharToString( env, &str, ( NJ_CHAR* )"\x00\x00", NJ_MAX_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getStroke()
539 NJ_CHAR candidate[ NJ_MAX_LEN + NJ_TERM_LEN ]; in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getCandidate()
541 …if( njx_get_candidate( &( work->wnnClass ), &( work->result ), candidate, sizeof( NJ_CHAR ) * ( NJ… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getCandidate()
547 … if( convertNjCharToString( env, &str, ( NJ_CHAR* )"\x00\x00", NJ_MAX_RESULT_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getCandidate()
[all …]