| OLD | NEW |
| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 void Ensure16Bit(); | 278 void Ensure16Bit(); |
| 279 | 279 |
| 280 void Truncate(unsigned length); | 280 void Truncate(unsigned length); |
| 281 void Remove(unsigned start, unsigned length = 1); | 281 void Remove(unsigned start, unsigned length = 1); |
| 282 | 282 |
| 283 String Substring(unsigned pos, unsigned len = UINT_MAX) const; | 283 String Substring(unsigned pos, unsigned len = UINT_MAX) const; |
| 284 String Left(unsigned len) const { return Substring(0, len); } | 284 String Left(unsigned len) const { return Substring(0, len); } |
| 285 String Right(unsigned len) const { return Substring(length() - len, len); } | 285 String Right(unsigned len) const { return Substring(length() - len, len); } |
| 286 | 286 |
| 287 // Returns a lowercase/uppercase version of the string. These functions might | 287 // Returns a lowercase version of the string. This function might convert |
| 288 // convert non-ASCII characters to ASCII characters. For example, | 288 // non-ASCII characters to ASCII characters. For example, DeprecatedLower() |
| 289 // DeprecatedLower() for U+212A is 'k', DeprecatedUpper() for U+017F is 'S'. | 289 // for U+212A is 'k'. |
| 290 // These functions are rarely used to implement web platform features. See | 290 // This function is 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 // This function is deprecated. We should use LowerASCII() or introduce |
| 293 // UpperUnicode(), and should introduce LowerASCII() or LowerUnicode(). | 293 // LowerUnicode(). |
| 294 String DeprecatedLower() const; | 294 String DeprecatedLower() const; |
| 295 String DeprecatedUpper() const; | |
| 296 | 295 |
| 296 // |locale_identifier| is case-insensitive, and accepts either of "aa_aa" or |
| 297 // "aa-aa". Empty/null |locale_identifier| indicates locale-independent |
| 298 // Unicode case conversion. |
| 297 String LowerUnicode(const AtomicString& locale_identifier) const; | 299 String LowerUnicode(const AtomicString& locale_identifier) const; |
| 298 String UpperUnicode(const AtomicString& locale_identifier) const; | 300 String UpperUnicode(const AtomicString& locale_identifier) const; |
| 299 | 301 |
| 300 // Returns a lowercase version of the string. | 302 // Returns a lowercase version of the string. |
| 301 // This function converts ASCII characters only. | 303 // This function converts ASCII characters only. |
| 302 String LowerASCII() const; | 304 String LowerASCII() const; |
| 303 // Returns a uppercase version of the string. | 305 // Returns a uppercase version of the string. |
| 304 // This function converts ASCII characters only. | 306 // This function converts ASCII characters only. |
| 305 String UpperASCII() const; | 307 String UpperASCII() const; |
| 306 | 308 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 using WTF::String; | 600 using WTF::String; |
| 599 using WTF::g_empty_string; | 601 using WTF::g_empty_string; |
| 600 using WTF::g_empty_string16_bit; | 602 using WTF::g_empty_string16_bit; |
| 601 using WTF::CharactersAreAllASCII; | 603 using WTF::CharactersAreAllASCII; |
| 602 using WTF::Equal; | 604 using WTF::Equal; |
| 603 using WTF::Find; | 605 using WTF::Find; |
| 604 using WTF::IsSpaceOrNewline; | 606 using WTF::IsSpaceOrNewline; |
| 605 | 607 |
| 606 #include "platform/wtf/text/AtomicString.h" | 608 #include "platform/wtf/text/AtomicString.h" |
| 607 #endif // WTFString_h | 609 #endif // WTFString_h |
| OLD | NEW |