Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: third_party/WebKit/Source/platform/wtf/text/StringView.cpp

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/wtf/text/StringView.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/text/StringView.cpp b/third_party/WebKit/Source/platform/wtf/text/StringView.cpp
index 778303a30d0b719ba05b06dcdfb858b9fcb075ab..349f396f370d12d03799b48c64436c90fe37fe70 100644
--- a/third_party/WebKit/Source/platform/wtf/text/StringView.cpp
+++ b/third_party/WebKit/Source/platform/wtf/text/StringView.cpp
@@ -61,23 +61,30 @@ bool EqualStringView(const StringView& a, const StringView& b) {
return Equal(a.Characters16(), b.Characters16(), a.length());
}
-bool EqualIgnoringCaseAndNullity(const StringView& a, const StringView& b) {
+bool DeprecatedEqualIgnoringCaseAndNullity(const StringView& a,
+ const StringView& b) {
if (a.length() != b.length())
return false;
if (a.Is8Bit()) {
- if (b.Is8Bit())
- return EqualIgnoringCase(a.Characters8(), b.Characters8(), a.length());
- return EqualIgnoringCase(a.Characters8(), b.Characters16(), a.length());
+ if (b.Is8Bit()) {
+ return DeprecatedEqualIgnoringCase(a.Characters8(), b.Characters8(),
+ a.length());
+ }
+ return DeprecatedEqualIgnoringCase(a.Characters8(), b.Characters16(),
+ a.length());
}
- if (b.Is8Bit())
- return EqualIgnoringCase(a.Characters16(), b.Characters8(), a.length());
- return EqualIgnoringCase(a.Characters16(), b.Characters16(), a.length());
+ if (b.Is8Bit()) {
+ return DeprecatedEqualIgnoringCase(a.Characters16(), b.Characters8(),
+ a.length());
+ }
+ return DeprecatedEqualIgnoringCase(a.Characters16(), b.Characters16(),
+ a.length());
}
-bool EqualIgnoringCase(const StringView& a, const StringView& b) {
+bool DeprecatedEqualIgnoringCase(const StringView& a, const StringView& b) {
if (a.IsNull() || b.IsNull())
return a.IsNull() == b.IsNull();
- return EqualIgnoringCaseAndNullity(a, b);
+ return DeprecatedEqualIgnoringCaseAndNullity(a, b);
}
bool EqualIgnoringASCIICase(const StringView& a, const StringView& b) {
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/text/StringView.h ('k') | third_party/WebKit/Source/platform/wtf/text/WTFString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698