Chromium Code Reviews| 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. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 373 intptr_t toIntPtr(bool* ok = 0) const; | 373 intptr_t toIntPtr(bool* ok = 0) const; |
| 374 | 374 |
| 375 // FIXME: Like the strict functions above, these give false for "ok" when th ere is trailing garbage. | 375 // FIXME: Like the strict functions above, these give false for "ok" when th ere is trailing garbage. |
| 376 // Like the non-strict functions above, these return the value when there is trailing garbage. | 376 // Like the non-strict functions above, these return the value when there is trailing garbage. |
| 377 // It would be better if these were more consistent with the above functions instead. | 377 // It would be better if these were more consistent with the above functions instead. |
| 378 double toDouble(bool* ok = 0) const; | 378 double toDouble(bool* ok = 0) const; |
| 379 float toFloat(bool* ok = 0) const; | 379 float toFloat(bool* ok = 0) const; |
| 380 | 380 |
| 381 bool percentage(int& percentage) const; | 381 bool percentage(int& percentage) const; |
| 382 | 382 |
| 383 // Returns a string which is guaranteed to be composed of Unicode | |
| 384 // scalar values, i.e. if the string is a 16-bit string, it is valid | |
| 385 // UTF-16 containing no unpaired surrogates. | |
| 386 String toScalarValueString() const; | |
|
tkent
2014/06/16 07:51:16
String is not suitable for this function.
'scalar
| |
| 387 | |
| 383 String isolatedCopy() const; | 388 String isolatedCopy() const; |
| 384 bool isSafeToSendToAnotherThread() const; | 389 bool isSafeToSendToAnotherThread() const; |
| 385 | 390 |
| 386 #if USE(CF) | 391 #if USE(CF) |
| 387 String(CFStringRef); | 392 String(CFStringRef); |
| 388 RetainPtr<CFStringRef> createCFString() const; | 393 RetainPtr<CFStringRef> createCFString() const; |
| 389 #endif | 394 #endif |
| 390 | 395 |
| 391 #ifdef __OBJC__ | 396 #ifdef __OBJC__ |
| 392 String(NSString*); | 397 String(NSString*); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 701 using WTF::charactersToFloat; | 706 using WTF::charactersToFloat; |
| 702 using WTF::equal; | 707 using WTF::equal; |
| 703 using WTF::equalIgnoringCase; | 708 using WTF::equalIgnoringCase; |
| 704 using WTF::find; | 709 using WTF::find; |
| 705 using WTF::isAllSpecialCharacters; | 710 using WTF::isAllSpecialCharacters; |
| 706 using WTF::isSpaceOrNewline; | 711 using WTF::isSpaceOrNewline; |
| 707 using WTF::reverseFind; | 712 using WTF::reverseFind; |
| 708 | 713 |
| 709 #include "wtf/text/AtomicString.h" | 714 #include "wtf/text/AtomicString.h" |
| 710 #endif // WTFString_h | 715 #endif // WTFString_h |
| OLD | NEW |