summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/text/StringImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/text/StringImpl.h')
-rw-r--r--WebCore/platform/text/StringImpl.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/WebCore/platform/text/StringImpl.h b/WebCore/platform/text/StringImpl.h
index 1fb1e95..dd50b2e 100644
--- a/WebCore/platform/text/StringImpl.h
+++ b/WebCore/platform/text/StringImpl.h
@@ -49,9 +49,6 @@ struct StringHash;
struct UCharBufferTranslator;
class StringImpl : public RefCounted<StringImpl> {
- friend class AtomicString;
- friend struct UCharBufferTranslator;
- friend struct CStringTranslator;
private:
StringImpl();
StringImpl(const UChar*, unsigned length);
@@ -102,16 +99,9 @@ public:
bool containsOnlyWhitespace();
- int toIntStrict(bool* ok = 0, int base = 10);
- unsigned toUIntStrict(bool* ok = 0, int base = 10);
- int64_t toInt64Strict(bool* ok = 0, int base = 10);
- uint64_t toUInt64Strict(bool* ok = 0, int base = 10);
-
- int toInt(bool* ok = 0); // ignores trailing garbage
- unsigned toUInt(bool* ok = 0); // ignores trailing garbage
- int64_t toInt64(bool* ok = 0); // ignores trailing garbage
- uint64_t toUInt64(bool* ok = 0); // ignores trailing garbage
-
+ int toInt(bool* ok = 0); // ignores trailing garbage, unlike DeprecatedString
+ int64_t toInt64(bool* ok = 0); // ignores trailing garbage, unlike DeprecatedString
+ uint64_t toUInt64(bool* ok = 0); // ignores trailing garbage, unlike DeprecatedString
double toDouble(bool* ok = 0);
float toFloat(bool* ok = 0);
@@ -156,6 +146,10 @@ public:
#endif
private:
+ friend class AtomicString;
+ friend struct UCharBufferTranslator;
+ friend struct CStringTranslator;
+
unsigned m_length;
const UChar* m_data;
mutable unsigned m_hash;