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

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

Issue 2813533003: Add "Unicode" suffixes to some functions of WTF::String and WTF::StringImpl. (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 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Returns a lowercase/uppercase version of the string. These functions might 287 // Returns a lowercase/uppercase version of the string. These functions might
288 // convert non-ASCII characters to ASCII characters. For example, 288 // convert non-ASCII characters to ASCII characters. For example,
289 // DeprecatedLower() for U+212A is 'k', DeprecatedUpper() for U+017F is 'S'. 289 // DeprecatedLower() for U+212A is 'k', DeprecatedUpper() for U+017F is 'S'.
290 // These functions are rarely used to implement web platform features. See 290 // These functions are rarely used to implement web platform features. See
291 // crbug.com/627682. 291 // crbug.com/627682.
292 // These functions are deprecated. We should use UpperASCII(), or introduce 292 // These functions are deprecated. We should use UpperASCII(), or introduce
293 // UpperUnicode(), and should introduce LowerASCII() or LowerUnicode(). 293 // UpperUnicode(), and should introduce LowerASCII() or LowerUnicode().
294 String DeprecatedLower() const; 294 String DeprecatedLower() const;
295 String DeprecatedUpper() const; 295 String DeprecatedUpper() const;
296 296
297 String Lower(const AtomicString& locale_identifier) const; 297 String LowerUnicode(const AtomicString& locale_identifier) const;
298 String Upper(const AtomicString& locale_identifier) const; 298 String UpperUnicode(const AtomicString& locale_identifier) const;
299 299
300 // Returns a uppercase version of the string. 300 // Returns a uppercase version of the string.
301 // This function converts ASCII characters only. 301 // This function converts ASCII characters only.
302 String UpperASCII() const; 302 String UpperASCII() const;
303 303
304 String StripWhiteSpace() const; 304 String StripWhiteSpace() const;
305 String StripWhiteSpace(IsWhiteSpaceFunctionPtr) const; 305 String StripWhiteSpace(IsWhiteSpaceFunctionPtr) const;
306 String SimplifyWhiteSpace(StripBehavior = kStripExtraWhiteSpace) const; 306 String SimplifyWhiteSpace(StripBehavior = kStripExtraWhiteSpace) const;
307 String SimplifyWhiteSpace(IsWhiteSpaceFunctionPtr, 307 String SimplifyWhiteSpace(IsWhiteSpaceFunctionPtr,
308 StripBehavior = kStripExtraWhiteSpace) const; 308 StripBehavior = kStripExtraWhiteSpace) const;
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 using WTF::String; 601 using WTF::String;
602 using WTF::g_empty_string; 602 using WTF::g_empty_string;
603 using WTF::g_empty_string16_bit; 603 using WTF::g_empty_string16_bit;
604 using WTF::CharactersAreAllASCII; 604 using WTF::CharactersAreAllASCII;
605 using WTF::Equal; 605 using WTF::Equal;
606 using WTF::Find; 606 using WTF::Find;
607 using WTF::IsSpaceOrNewline; 607 using WTF::IsSpaceOrNewline;
608 608
609 #include "wtf/text/AtomicString.h" 609 #include "wtf/text/AtomicString.h"
610 #endif // WTFString_h 610 #endif // WTFString_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698