diff options
author | 2024-06-12 09:30:37 +0000 | |
---|---|---|
committer | 2024-06-14 10:14:50 +0000 | |
commit | 2b4eb676348f122ab0a21e19d7a3c57bd9898c6c (patch) | |
tree | 281ceaa54365c8c38ca94ea484c831aeb1951bf8 /libartbase/base/file_utils.h | |
parent | 9132d9056cc1d4eb342d1a2b0315fc1f054ca2f8 (diff) |
Use C++20 `string{,_view}::{starts,ends}_with()`, part 2.
Replace uses of `android::base::{Starts,Ends}With()`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I80a0ca93f433464270989d248dd999e9366a1c17
Diffstat (limited to 'libartbase/base/file_utils.h')
-rw-r--r-- | libartbase/base/file_utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libartbase/base/file_utils.h b/libartbase/base/file_utils.h index 8222a8a1d4..205cc6115d 100644 --- a/libartbase/base/file_utils.h +++ b/libartbase/base/file_utils.h @@ -127,8 +127,10 @@ void GetDalvikCache(const char* subdir, bool create_if_absent, std::string* dalv // Returns the absolute dalvik-cache path for a DexFile or OatFile. The path returned will be // rooted at `cache_location`. -bool GetDalvikCacheFilename(const char* location, const char* cache_location, - std::string* filename, std::string* error_msg); +bool GetDalvikCacheFilename(std::string_view location, + std::string_view cache_location, + std::string* filename, + std::string* error_msg); // Returns the absolute dalvik-cache path. The path may include the instruction set sub-directory // if specified. |