int standard_load_persistence_fst2(const char*filename,char* persistent_filename_buffer,size_t buffer_size) { if ((persistent_filename_buffer == NULL) || (buffer_size <= strlen(filename))) return 0; strcpy(persistent_filename_buffer,filename); return load_persistent_fst2(filename); }
/* * Class: fr_umlv_unitex_jni_UnitexJni * Method: loadPersistentFst2 * Signature: (Ljava/lang/String;)Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_fr_umlv_unitex_jni_UnitexJni_loadPersistentFst2 (JNIEnv* env, jclass, jstring filename) { jstringToCUtf name; name.initJString(env,filename); if (load_persistent_fst2(name.getJString())) { return env->NewStringUTF(name.getJString()); } return NULL; }