Lines Matching refs:env
58 static int convertStringToNjChar( JNIEnv *env, NJ_CHAR* dst, jstring srcJ, int maxChars ) in convertStringToNjChar() argument
62 src = ( const unsigned char* )( ( *env )->GetStringUTFChars( env, srcJ, NULL ) ); in convertStringToNjChar()
129 ( *env )->ReleaseStringUTFChars( env, srcJ, ( const char* )src ); in convertStringToNjChar()
136 static int convertNjCharToString( JNIEnv* env, jstring* dstJ, NJ_CHAR* src, int maxChars ) in convertNjCharToString() argument
194 *dstJ = ( *env )->NewStringUTF( env, dst ); in convertNjCharToString()
206 (JNIEnv *env, jobject obj, jstring dicLibPathJ) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork() argument
226 ( dicLibPath = ( *env )->GetStringUTFChars( env, dicLibPathJ, 0 ) ) == NULL ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
232 ( *env )->ReleaseStringUTFChars( env, dicLibPathJ, dicLibPath ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
285 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_freeWnnWork() argument
311 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_clearDictionaryParameters() argument
341 (JNIEnv *env, jobject obj, jlong wnnWork, jint index, jint base, jint high) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setDictionaryParameter() argument
385 (JNIEnv *env, jobject obj, jlong wnnWork, jint operation, jint order, jstring keyString) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord() argument
401 if( ( *env )->GetStringLength( env, keyString ) > NJ_MAX_LEN ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord()
408 if( convertStringToNjChar( env, work->keyString, keyString, NJ_MAX_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord()
453 (JNIEnv *env, jclass obj, jlong wnnWork, jint length) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNextWord() argument
497 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getStroke() argument
509 convertNjCharToString( env, &str, stroke, NJ_MAX_LEN ) >= 0 ) { 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()
530 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getCandidate() argument
542 convertNjCharToString( env, &str, candidate, NJ_MAX_RESULT_LEN ) >= 0 ) { 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()
563 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getFrequency() argument
587 (JNIEnv *env, jobject obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_clearApproxPatterns() argument
616 (JNIEnv *env, jobject obj, jlong wnnWork, jstring srcJ, jstring dstJ) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JLjava_lang_String_2Ljava_lang_String_2() argument
620 …if( srcJ == NULL || ( *env )->GetStringLength( env, srcJ ) == 0 || ( *env )->GetStringLength( env,… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JLjava_lang_String_2Ljava_lang_String_2()
621 …dstJ == NULL || ( *env )->GetStringLength( env, dstJ ) == 0 || ( *env )->GetStringLength( env, dst… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JLjava_lang_String_2Ljava_lang_String_2()
639 if( convertStringToNjChar( env, from, srcJ, NJ_MAX_CHARSET_FROM_LEN ) >= 0 && in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JLjava_lang_String_2Ljava_lang_String_2()
640 convertStringToNjChar( env, to, dstJ, NJ_MAX_CHARSET_TO_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JLjava_lang_String_2Ljava_lang_String_2()
668 (JNIEnv *env, jclass obj, jlong wnnWork, jint approxPattern) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setApproxPattern__JI() argument
727 (JNIEnv *env, jclass obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getLeftPartOfSpeech() argument
746 (JNIEnv *env, jclass obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getRightPartOfSpeech() argument
765 (JNIEnv *env, jclass obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_clearResult() argument
786 (JNIEnv *env, jclass obj, jlong wnnWork, jint leftPartOfSpeech) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setLeftPartOfSpeech() argument
820 (JNIEnv *env, jclass obj, jlong wnnWork, jint rightPartOfSpeech) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setRightPartOfSpeech() argument
854 (JNIEnv *env, jclass obj, jlong wnnWork, jstring stroke) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setStroke() argument
865 if( ( *env )->GetStringLength( env, stroke ) > NJ_MAX_LEN ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setStroke()
871 if( convertStringToNjChar( env, work->previousStroke, stroke, NJ_MAX_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setStroke()
889 (JNIEnv *env, jclass obj, jlong wnnWork, jstring candidate) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setCandidate() argument
900 if( ( *env )->GetStringLength( env, candidate ) > NJ_MAX_RESULT_LEN ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setCandidate()
906 if( convertStringToNjChar( env, work->previousCandidate, candidate, NJ_MAX_RESULT_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_setCandidate()
924 (JNIEnv *env, jclass obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_selectWord() argument
945 (JNIEnv *env, jclass obj, jlong wnnWork, jint type) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getLeftPartOfSpeechSpecifiedType() argument
999 (JNIEnv *env, jclass obj, jlong wnnWork, jint type) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getRightPartOfSpeechSpecifiedType() argument
1053 (JNIEnv *env, jclass obj, jlong wnnWork, jint leftPartOfSpeech) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getConnectArray() argument
1075 resultJ = ( *env )->NewByteArray( env, rcount + 1 ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getConnectArray()
1079 result = ( *env )->GetByteArrayElements( env, resultJ, NULL ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getConnectArray()
1105 ( *env )->ReleaseByteArrayElements( env, resultJ, result, 0 ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getConnectArray()
1122 (JNIEnv *env, jclass obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNumberOfLeftPOS() argument
1149 (JNIEnv *env, jclass obj, jlong wnnWork) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNumberOfRightPOS() argument
1176 (JNIEnv *env, jclass obj, jlong wnnWork, jstring srcJ) in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern() argument
1180 …if( srcJ == NULL || ( *env )->GetStringLength( env, srcJ ) == 0 || ( *env )->GetStringLength( env,… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern()
1190 if( convertStringToNjChar( env, from, srcJ, NJ_MAX_CHARSET_FROM_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern()
1198 jclass strC = ( *env )->FindClass( env, "java/lang/String" ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern()
1201 jobjectArray retJ = ( *env )->NewObjectArray( env, outCount, strC, NULL ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern()
1208 … if( convertNjCharToString( env, &dstJ, work->approxSet.to[ i ], NJ_MAX_CHARSET_TO_LEN ) < 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern()
1212 ( *env )->SetObjectArrayElement( env, retJ, outIndex++, dstJ ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getApproxPattern()
1234 …(JNIEnv *env, jclass obj, jlong wnnWork, jstring keyStringJ, jint maxBindsOfQuery, jint maxPattern… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray() argument
1246 jclass strC = ( *env )->FindClass( env, "java/lang/String" ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1249 …jobjectArray retJ = ( *env )->NewObjectArray( env, maxBindsOfQuery * (maxPatternOfApprox+1), strC,… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1254 if( convertStringToNjChar( env, keyString, keyStringJ, NJ_MAX_LEN ) >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1291 if( convertNjCharToString( env, &dstJ, baseStr, NJ_MAX_LEN ) < 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1295 ( *env )->SetObjectArrayElement( env, retJ, outIndex++, dstJ ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1300 jstring dstJ = ( *env )->NewStringUTF( env, "" ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1304 ( *env )->SetObjectArrayElement( env, retJ, outIndex++, dstJ ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1314 jstring dstJ = ( *env )->NewStringUTF( env, "%" ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1318 ( *env )->SetObjectArrayElement( env, retJ, outIndex++, dstJ ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createBindArray()
1340 …(JNIEnv *env, jclass obj, jlong wnnWork, jint maxBindsOfQuery, jint maxPatternOfApprox, jstring ke… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createQueryStringBase() argument
1352 …const unsigned char* keyName = ( const unsigned char* )( ( *env )->GetStringUTFChars( env, keyColu… in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createQueryStringBase()
1387 retJ = ( *env )->NewStringUTF( env, dst ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createQueryStringBase()
1392 ( *env )->ReleaseStringUTFChars( env, keyColumnNameJ, ( const char* )keyName ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createQueryStringBase()