summaryrefslogtreecommitdiff
path: root/runtime/mirror/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mirror/string.h')
-rw-r--r--runtime/mirror/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/string.h b/runtime/mirror/string.h
index 0e3c500ca5..ccb1e49d28 100644
--- a/runtime/mirror/string.h
+++ b/runtime/mirror/string.h
@@ -237,13 +237,13 @@ class MANAGED String final : public Object {
std::string PrettyStringDescriptor()
REQUIRES_SHARED(Locks::mutator_lock_);
- private:
static constexpr bool IsASCII(uint16_t c) {
// Valid ASCII characters are in range 1..0x7f. Zero is not considered ASCII
// because it would complicate the detection of ASCII strings in Modified-UTF8.
return (c - 1u) < 0x7fu;
}
+ private:
static bool AllASCIIExcept(const uint16_t* chars, int32_t length, uint16_t non_ascii);
void SetHashCode(int32_t new_hash_code) REQUIRES_SHARED(Locks::mutator_lock_) {