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

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: 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 String left(unsigned len) const { return substring(0, len); } 283 String left(unsigned len) const { return substring(0, len); }
284 String right(unsigned len) const { return substring(length() - len, len); } 284 String right(unsigned len) const { return substring(length() - len, len); }
285 285
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 upperASCII() const;
tkent 2017/03/01 12:21:27 Please add a comment like AtomicString.h. This fu
294
293 String lower(const AtomicString& localeIdentifier) const; 295 String lower(const AtomicString& localeIdentifier) const;
294 String upper(const AtomicString& localeIdentifier) const; 296 String upper(const AtomicString& localeIdentifier) const;
295 297
296 String stripWhiteSpace() const; 298 String stripWhiteSpace() const;
297 String stripWhiteSpace(IsWhiteSpaceFunctionPtr) const; 299 String stripWhiteSpace(IsWhiteSpaceFunctionPtr) const;
298 String simplifyWhiteSpace(StripBehavior = StripExtraWhiteSpace) const; 300 String simplifyWhiteSpace(StripBehavior = StripExtraWhiteSpace) const;
299 String simplifyWhiteSpace(IsWhiteSpaceFunctionPtr, 301 String simplifyWhiteSpace(IsWhiteSpaceFunctionPtr,
300 StripBehavior = StripExtraWhiteSpace) const; 302 StripBehavior = StripExtraWhiteSpace) const;
301 303
302 String removeCharacters(CharacterMatchFunctionPtr) const; 304 String removeCharacters(CharacterMatchFunctionPtr) const;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 using WTF::String; 595 using WTF::String;
594 using WTF::emptyString; 596 using WTF::emptyString;
595 using WTF::emptyString16Bit; 597 using WTF::emptyString16Bit;
596 using WTF::charactersAreAllASCII; 598 using WTF::charactersAreAllASCII;
597 using WTF::equal; 599 using WTF::equal;
598 using WTF::find; 600 using WTF::find;
599 using WTF::isSpaceOrNewline; 601 using WTF::isSpaceOrNewline;
600 602
601 #include "wtf/text/AtomicString.h" 603 #include "wtf/text/AtomicString.h"
602 #endif // WTFString_h 604 #endif // WTFString_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698