From 6c3ea866e93003e16fc55d3b5cedd3bc371d1fde Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 12 May 2023 15:37:37 -0700 Subject: [llvm] Migrate {starts,ends}with_insensitive to {starts,ends}_with_insensitive (NFC) This patch migrates uses of StringRef::{starts,ends}with_insensitive to StringRef::{starts,ends}_with_insensitive so that we can use names similar to those used in std::string_view. I'm planning to deprecate StringRef::{starts,ends}with_insensitive once the migration is complete across the code base. Differential Revision: https://reviews.llvm.org/D150426 --- llvm/lib/Support/StringRef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/StringRef.cpp') diff --git a/llvm/lib/Support/StringRef.cpp b/llvm/lib/Support/StringRef.cpp index fb93940..6207f626 100644 --- a/llvm/lib/Support/StringRef.cpp +++ b/llvm/lib/Support/StringRef.cpp @@ -191,7 +191,7 @@ size_t StringRef::find(StringRef Str, size_t From) const { size_t StringRef::find_insensitive(StringRef Str, size_t From) const { StringRef This = substr(From); while (This.size() >= Str.size()) { - if (This.startswith_insensitive(Str)) + if (This.starts_with_insensitive(Str)) return From; This = This.drop_front(); ++From; -- cgit v1.1