borisbrodski / sevenzipjbinding

7-Zip-JBinding
http://sevenzipjbind.sourceforge.net/
Other
176 stars 50 forks source link

where is the implement of function `NewString` in `jbinding-cpp/UnicodeHelper.h'` #68

Open BTYHunter opened 7 months ago

BTYHunter commented 7 months ago

Sorry I can not find the implement of NewString function in 'jbinding-cpp/UnicodeHelper.h' (I have searched the whole project code). Below is the code.

 jstring toNewString(JNIEnv * env) {
    return env->NewString((const jchar *)*this, _unicodeLength);
 }

Thanks for you reply. @borisbrodski Would you please help?

borisbrodski commented 7 months ago

Sure. NewString ist jni-function:

jstring NewString(const jchar *unicode, jsize len) {
    return functions->NewString(this,unicode,len);
}

(from jdk1.5.0_22/include/jni.h)