diff options
author | 2024-06-12 07:46:46 +0000 | |
---|---|---|
committer | 2024-06-13 14:20:24 +0000 | |
commit | 20f803bad38828a3e1d7754d7123971b7b42ddba (patch) | |
tree | 71408134bec25cfcc24e2d68af9b414a93ec4110 /runtime/jni/java_vm_ext.cc | |
parent | 155920b599580c86d341181cd544d14bbca32e76 (diff) |
Use C++20 `string{,_view}::{starts,ends}_with()`, part 1.
Remove the header file `string_view_cpp20.h` and update
all source files that previously used this header file.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Iafcdfc838a97deed7fb3a37cc8afe1f7ee78306b
Diffstat (limited to 'runtime/jni/java_vm_ext.cc')
-rw-r--r-- | runtime/jni/java_vm_ext.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/jni/java_vm_ext.cc b/runtime/jni/java_vm_ext.cc index 4b58fd883e..60b436984d 100644 --- a/runtime/jni/java_vm_ext.cc +++ b/runtime/jni/java_vm_ext.cc @@ -26,7 +26,6 @@ #include "base/mutex-inl.h" #include "base/sdk_version.h" #include "base/stl_util.h" -#include "base/string_view_cpp20.h" #include "base/systrace.h" #include "check_jni.h" #include "dex/dex_file-inl.h" @@ -640,7 +639,7 @@ bool JavaVMExt::ShouldTrace(ArtMethod* method) { "Lorg/apache/harmony/", }; for (size_t i = 0; i < arraysize(gBuiltInPrefixes); ++i) { - if (StartsWith(class_name, gBuiltInPrefixes[i])) { + if (class_name.starts_with(gBuiltInPrefixes[i])) { return false; } } |