We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fae5e commit 6b7957aCopy full SHA for 6b7957a
llvm/include/llvm/ADT/StringRef.h
@@ -177,6 +177,11 @@ namespace llvm {
177
return size() == RHS.size() && compare_insensitive(RHS) == 0;
178
}
179
180
+ /// Check for string equality, ignoring case.
181
+ [[nodiscard]] bool equals(StringRef RHS) const {
182
+ return Length == RHS.Length && compare(RHS) == 0;
183
+ }
184
+
185
/// compare - Compare two strings; the result is negative, zero, or positive
186
/// if this string is lexicographically less than, equal to, or greater than
187
/// the \p RHS.
0 commit comments