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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I should check - are these function names actually in std::string_view? It doesn't look like it, so renaming them doesn't help us get to the ability to switch to std::string_view, right?
Maybe it'd make more sense to make these non-member functions, so the StringRef API gets closer to string_view?
Comment Actions
std::string_view::starts_with_insensitive doesn't exist. It (including startswith_insensitive) is a StringRef extension that occurs ~80 times in llvm-project.
Comment Actions
Yes, startswith_insensitive is a StringRef extension.
We should probably tackle StringRef::startswith and StringRef::endswith also, but I'd consult larger audience as they are used in a lot more places.