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

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

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
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, 2009, 2010, 2012, 2013 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // Returns a lowercase/uppercase version of the string. These functions might 286 // Returns a lowercase/uppercase version of the string. These functions might
287 // convert non-ASCII characters to ASCII characters. For example, lower() for 287 // convert non-ASCII characters to ASCII characters. For example, lower() for
288 // U+212A is 'k', upper() for U+017F is 'S'. 288 // U+212A is 'k', upper() for U+017F is 'S'.
289 // These functions are rarely used to implement web platform features. 289 // These functions are rarely used to implement web platform features.
290 String lower() const; 290 String lower() const;
291 String upper() const; 291 String upper() const;
292 292
293 String lower(const AtomicString& localeIdentifier) const; 293 String lower(const AtomicString& localeIdentifier) const;
294 String upper(const AtomicString& localeIdentifier) const; 294 String upper(const AtomicString& localeIdentifier) const;
295 295
296 // Returns a uppercase version of the string.
297 // This function converts ASCII characters only.
298 String upperASCII() const;
299
296 String stripWhiteSpace() const; 300 String stripWhiteSpace() const;
297 String stripWhiteSpace(IsWhiteSpaceFunctionPtr) const; 301 String stripWhiteSpace(IsWhiteSpaceFunctionPtr) const;
298 String simplifyWhiteSpace(StripBehavior = StripExtraWhiteSpace) const; 302 String simplifyWhiteSpace(StripBehavior = StripExtraWhiteSpace) const;
299 String simplifyWhiteSpace(IsWhiteSpaceFunctionPtr, 303 String simplifyWhiteSpace(IsWhiteSpaceFunctionPtr,
300 StripBehavior = StripExtraWhiteSpace) const; 304 StripBehavior = StripExtraWhiteSpace) const;
301 305
302 String removeCharacters(CharacterMatchFunctionPtr) const; 306 String removeCharacters(CharacterMatchFunctionPtr) const;
303 template <bool isSpecialCharacter(UChar)> 307 template <bool isSpecialCharacter(UChar)>
304 bool isAllSpecialCharacters() const; 308 bool isAllSpecialCharacters() const;
305 309
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 using WTF::String; 597 using WTF::String;
594 using WTF::emptyString; 598 using WTF::emptyString;
595 using WTF::emptyString16Bit; 599 using WTF::emptyString16Bit;
596 using WTF::charactersAreAllASCII; 600 using WTF::charactersAreAllASCII;
597 using WTF::equal; 601 using WTF::equal;
598 using WTF::find; 602 using WTF::find;
599 using WTF::isSpaceOrNewline; 603 using WTF::isSpaceOrNewline;
600 604
601 #include "wtf/text/AtomicString.h" 605 #include "wtf/text/AtomicString.h"
602 #endif // WTFString_h 606 #endif // WTFString_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImplTest.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698