summaryrefslogtreecommitdiff
path: root/runtime/mirror/string.h
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-02-14 15:43:22 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-02-14 15:43:23 +0000
commit2d98ba68f13dc219c088a12f369c5778bf398f14 (patch)
treeaf94d7fc529953701e1231a8ddc453221c414596 /runtime/mirror/string.h
parent582fc0501bbdbb538cafdf36aec3e142e390688f (diff)
parente39f14ff4e0d7c70016874cff24863b912d40bf1 (diff)
Merge "ARM64: Improve String.equals() intrinsic for const strings."
Diffstat (limited to 'runtime/mirror/string.h')
-rw-r--r--runtime/mirror/string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/mirror/string.h b/runtime/mirror/string.h
index 409c6c2896..38f6dd4b6f 100644
--- a/runtime/mirror/string.h
+++ b/runtime/mirror/string.h
@@ -184,7 +184,9 @@ class MANAGED String FINAL : public Object {
bool IsValueNull() REQUIRES_SHARED(Locks::mutator_lock_);
template<typename MemoryType>
- static bool AllASCII(const MemoryType* const chars, const int length);
+ static bool AllASCII(const MemoryType* chars, const int length);
+
+ static bool DexFileStringAllASCII(const char* chars, const int length);
ALWAYS_INLINE static bool IsCompressed(int32_t count) {
return GetCompressionFlagFromCount(count) == StringCompressionFlag::kCompressed;