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

Unified Diff: third_party/WebKit/Source/platform/wtf/text/StringImpl.h

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/StringImpl.h
diff --git a/third_party/WebKit/Source/platform/wtf/text/StringImpl.h b/third_party/WebKit/Source/platform/wtf/text/StringImpl.h
index be9864e4c047b6f3292ef334a7fad1d830d56b69..2c651305374d333f469f6a3f3b0503d6ec90222c 100644
--- a/third_party/WebKit/Source/platform/wtf/text/StringImpl.h
+++ b/third_party/WebKit/Source/platform/wtf/text/StringImpl.h
@@ -599,12 +599,22 @@ ALWAYS_INLINE bool Equal(const UChar* a, const LChar* b, unsigned length) {
// Unicode aware case insensitive string matching. Non-ASCII characters might
// match to ASCII characters. These functions are rarely used to implement web
// platform features.
-WTF_EXPORT bool EqualIgnoringCase(const LChar*, const LChar*, unsigned length);
-WTF_EXPORT bool EqualIgnoringCase(const UChar*, const LChar*, unsigned length);
-inline bool EqualIgnoringCase(const LChar* a, const UChar* b, unsigned length) {
- return EqualIgnoringCase(b, a, length);
-}
-WTF_EXPORT bool EqualIgnoringCase(const UChar*, const UChar*, unsigned length);
+// These functions are deprecated. Use EqualIgnoringASCIICase(), or introduce
+// EqualIgnoringUnicodeCase(). See crbug.com/627682
+WTF_EXPORT bool DeprecatedEqualIgnoringCase(const LChar*,
+ const LChar*,
+ unsigned length);
+WTF_EXPORT bool DeprecatedEqualIgnoringCase(const UChar*,
+ const LChar*,
+ unsigned length);
+inline bool DeprecatedEqualIgnoringCase(const LChar* a,
+ const UChar* b,
+ unsigned length) {
+ return DeprecatedEqualIgnoringCase(b, a, length);
+}
+WTF_EXPORT bool DeprecatedEqualIgnoringCase(const UChar*,
+ const UChar*,
+ unsigned length);
WTF_EXPORT bool EqualIgnoringNullity(StringImpl*, StringImpl*);
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/text/StringHash.h ('k') | third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698