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

Side by Side Diff: third_party/WebKit/Source/wtf/text/WTFString.cpp

Issue 2723053002: Use the correct case converter for |localName| and |tagName| (Closed)
Patch Set: Oops... Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2007-2009 Torch Mobile, Inc. 5 * Copyright (C) 2007-2009 Torch Mobile, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 return String(); 287 return String();
288 return m_impl->lower(localeIdentifier); 288 return m_impl->lower(localeIdentifier);
289 } 289 }
290 290
291 String String::upper(const AtomicString& localeIdentifier) const { 291 String String::upper(const AtomicString& localeIdentifier) const {
292 if (!m_impl) 292 if (!m_impl)
293 return String(); 293 return String();
294 return m_impl->upper(localeIdentifier); 294 return m_impl->upper(localeIdentifier);
295 } 295 }
296 296
297 String String::upperASCII() const {
298 if (!m_impl)
299 return String();
300 return m_impl->upperASCII();
301 }
302
297 String String::stripWhiteSpace() const { 303 String String::stripWhiteSpace() const {
298 if (!m_impl) 304 if (!m_impl)
299 return String(); 305 return String();
300 return m_impl->stripWhiteSpace(); 306 return m_impl->stripWhiteSpace();
301 } 307 }
302 308
303 String String::stripWhiteSpace(IsWhiteSpaceFunctionPtr isWhiteSpace) const { 309 String String::stripWhiteSpace(IsWhiteSpaceFunctionPtr isWhiteSpace) const {
304 if (!m_impl) 310 if (!m_impl)
305 return String(); 311 return String();
306 return m_impl->stripWhiteSpace(isWhiteSpace); 312 return m_impl->stripWhiteSpace(isWhiteSpace);
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 return out << '"'; 823 return out << '"';
818 } 824 }
819 825
820 #ifndef NDEBUG 826 #ifndef NDEBUG
821 void String::show() const { 827 void String::show() const {
822 dataLogF("%s\n", asciiDebug(impl()).data()); 828 dataLogF("%s\n", asciiDebug(impl()).data());
823 } 829 }
824 #endif 830 #endif
825 831
826 } // namespace WTF 832 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698