| 39 | } |
| 40 | |
| 41 | static bool AppendJString(JNIEnv* env, jstring text, std::string* dst) { |
| 42 | const char* utfText = env->GetStringUTFChars(text, NULL); |
| 43 | if (utfText == NULL) { |
| 44 | return false; |
| 45 | } |
| 46 | dst->append(utfText); |
| 47 | env->ReleaseStringUTFChars(text, utfText); |
| 48 | return true; |
| 49 | } |
| 50 | |
| 51 | /* |
| 52 | * Returns a human-readable summary of an exception object. The buffer will |
no outgoing calls
no test coverage detected