mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
ZLUnicodeUtil is now based on java String methods
This commit is contained in:
parent
15f3e8e3c1
commit
9d2cea64ec
7 changed files with 69 additions and 11143 deletions
|
@ -32,6 +32,7 @@ private:
|
|||
|
||||
public:
|
||||
static const char * const Class_java_lang_System;
|
||||
static const char * const Class_java_lang_String;
|
||||
static const char * const Class_java_util_Collection;
|
||||
static const char * const Class_java_util_Locale;
|
||||
static const char * const Class_java_io_InputStream;
|
||||
|
@ -47,6 +48,9 @@ public:
|
|||
|
||||
static jobject OBJECT_java_lang_System_err;
|
||||
|
||||
static jmethodID MID_java_lang_String_toLowerCase;
|
||||
static jmethodID MID_java_lang_String_toUpperCase;
|
||||
|
||||
static jmethodID MID_java_util_Collection_toArray;
|
||||
|
||||
static jmethodID SMID_java_util_Locale_getDefault;
|
||||
|
@ -102,7 +106,7 @@ public:
|
|||
static JNIEnv *getEnv();
|
||||
|
||||
static jobject createZLFile(JNIEnv *env, const std::string &path);
|
||||
static bool extractJavaString(JNIEnv *env, jstring from, std::string &to);
|
||||
static std::string fromJavaString(JNIEnv *env, jstring from);
|
||||
static jstring createJavaString(JNIEnv* env, const std::string &str);
|
||||
static std::string convertNonUtfString(const std::string &str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue