| 31 | #include <string> |
| 32 | |
| 33 | static jmethodID FindMethod(JNIEnv* env, const char* className, |
| 34 | const char* methodName, const char* descriptor) { |
| 35 | jclass clazz = env->FindClass(className); |
| 36 | jmethodID methodId = env->GetMethodID(clazz, methodName, descriptor); |
| 37 | env->DeleteLocalRef(clazz); |
| 38 | return methodId; |
| 39 | } |
| 40 | |
| 41 | static bool AppendJString(JNIEnv* env, jstring text, std::string* dst) { |
| 42 | const char* utfText = env->GetStringUTFChars(text, NULL); |
no outgoing calls
no test coverage detected