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

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

Issue 2814673002: Use ASCII-caseless matching for attribute names. (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/WTFString.h
diff --git a/third_party/WebKit/Source/platform/wtf/text/WTFString.h b/third_party/WebKit/Source/platform/wtf/text/WTFString.h
index 2c3efa37cea5d29004b2859c2b3c40e39dcf31ee..d1271e16db27dcda321ebfd8e3870b527001f883 100644
--- a/third_party/WebKit/Source/platform/wtf/text/WTFString.h
+++ b/third_party/WebKit/Source/platform/wtf/text/WTFString.h
@@ -297,6 +297,9 @@ class WTF_EXPORT String {
String LowerUnicode(const AtomicString& locale_identifier) const;
String UpperUnicode(const AtomicString& locale_identifier) const;
+ // Returns a lowercase version of the string.
+ // This function converts ASCII characters only.
+ String LowerASCII() const;
// Returns a uppercase version of the string.
// This function converts ASCII characters only.
String UpperASCII() const;
@@ -472,10 +475,10 @@ inline bool operator!=(const char* a, const String& b) {
return !(a == b);
}
-inline bool EqualPossiblyIgnoringCase(const String& a,
- const String& b,
- bool ignore_case) {
- return ignore_case ? DeprecatedEqualIgnoringCase(a, b) : (a == b);
+inline bool EqualPossiblyIgnoringASCIICase(const String& a,
+ const String& b,
+ bool ignore_case) {
+ return ignore_case ? EqualIgnoringASCIICase(a, b) : (a == b);
}
inline bool EqualIgnoringNullity(const String& a, const String& b) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/QualifiedName.h ('k') | third_party/WebKit/Source/platform/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698