Home
last modified time | relevance | path

Searched refs:string_ (Results 1 – 2 of 2) sorted by relevance

/libnativehelper/header_only_include/nativehelper/
Dscoped_utf_chars.h37 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
47 env_(rhs.env_), string_(rhs.string_), utf_chars_(rhs.utf_chars_) { in ScopedUtfChars()
49 rhs.string_ = nullptr; in ScopedUtfChars()
55 env_->ReleaseStringUTFChars(string_, utf_chars_); in ~ScopedUtfChars()
66 string_ = rhs.string_;
69 rhs.string_ = nullptr;
89 jstring string_; variable
Dscoped_string_chars.h36 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars()
41 chars_ = env->GetStringChars(string_, nullptr); in ScopedStringChars()
43 size_ = env->GetStringLength(string_); in ScopedStringChars()
50 env_->ReleaseStringChars(string_, chars_); in ~ScopedStringChars()
68 const jstring string_; variable