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

Unified Diff: third_party/WebKit/Source/wtf/text/AtomicString.h

Issue 2723053002: Use the correct case converter for |localName| and |tagName| (Closed)
Patch Set: Oops... Created 3 years, 10 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/wtf/text/AtomicString.h
diff --git a/third_party/WebKit/Source/wtf/text/AtomicString.h b/third_party/WebKit/Source/wtf/text/AtomicString.h
index 4f4a96bbe874cb23472c505131d724067c1598da..f89af9c70145da4c6a0b6986a0be00077827eb05 100644
--- a/third_party/WebKit/Source/wtf/text/AtomicString.h
+++ b/third_party/WebKit/Source/wtf/text/AtomicString.h
@@ -161,16 +161,16 @@ class WTF_EXPORT AtomicString {
}
bool endsWith(UChar character) const { return m_string.endsWith(character); }
- // Returns a lowercase/uppercase version of the string. These functions might
- // convert non-ASCII characters to ASCII characters. For example, lower() for
- // U+212A is 'k', upper() for U+017F is 'S'.
- // These functions are rarely used to implement web platform features.
+ // Returns a lowercase version of the string. This function might
+ // convert non-ASCII characters to ASCII characters. For example,
+ // lower() for U+212A is 'k'.
+ // This function is rarely used to implement web platform features.
AtomicString lower() const;
- AtomicString upper() const { return AtomicString(impl()->upper()); }
- // Returns a lowercase version of the string. This function converts only
- // upper-case ASCII characters.
+ // Returns a lowercase/uppercase version of the string.
+ // These functions convert ASCII characters only.
AtomicString lowerASCII() const;
+ AtomicString upperASCII() const;
int toInt(bool* ok = 0) const { return m_string.toInt(ok); }
double toDouble(bool* ok = 0) const { return m_string.toDouble(ok); }
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLElement.cpp ('k') | third_party/WebKit/Source/wtf/text/AtomicString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698