MCPcopy Create free account
hub / github.com/android/ndk-samples / AppendJString

Function AppendJString

exceptions/app/src/main/cpp/exception_helper.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static 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

Callers 1

GetExceptionSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected