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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.h

Issue 2058613002: Move WTF string to number converter functions to StringToNumber.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing files. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/text/WTFString.h
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h
index 27462b0bae4a295154ff9c1d26b3890647125679..839454d9a9617bcb2d07f052cd6f3bfe88534bf4 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.h
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h
@@ -42,39 +42,6 @@ namespace WTF {
class CString;
struct StringHash;
-// Declarations of string operations
-
-WTF_EXPORT int charactersToIntStrict(const LChar*, size_t, bool* ok = 0, int base = 10);
-WTF_EXPORT int charactersToIntStrict(const UChar*, size_t, bool* ok = 0, int base = 10);
-WTF_EXPORT unsigned charactersToUIntStrict(const LChar*, size_t, bool* ok = 0, int base = 10);
-WTF_EXPORT unsigned charactersToUIntStrict(const UChar*, size_t, bool* ok = 0, int base = 10);
-WTF_EXPORT int64_t charactersToInt64Strict(const LChar*, size_t, bool* ok = 0, int base = 10);
-WTF_EXPORT int64_t charactersToInt64Strict(const UChar*, size_t, bool* ok = 0, int base = 10);
-WTF_EXPORT uint64_t charactersToUInt64Strict(const LChar*, size_t, bool* ok = 0, int base = 10);
-WTF_EXPORT uint64_t charactersToUInt64Strict(const UChar*, size_t, bool* ok = 0, int base = 10);
-
-WTF_EXPORT int charactersToInt(const LChar*, size_t, bool* ok = 0); // ignores trailing garbage
-WTF_EXPORT int charactersToInt(const UChar*, size_t, bool* ok = 0); // ignores trailing garbage
-WTF_EXPORT unsigned charactersToUInt(const LChar*, size_t, bool* ok = 0); // ignores trailing garbage
-WTF_EXPORT unsigned charactersToUInt(const UChar*, size_t, bool* ok = 0); // ignores trailing garbage
-WTF_EXPORT int64_t charactersToInt64(const LChar*, size_t, bool* ok = 0); // ignores trailing garbage
-WTF_EXPORT int64_t charactersToInt64(const UChar*, size_t, bool* ok = 0); // ignores trailing garbage
-WTF_EXPORT uint64_t charactersToUInt64(const LChar*, size_t, bool* ok = 0); // ignores trailing garbage
-WTF_EXPORT uint64_t charactersToUInt64(const UChar*, size_t, bool* ok = 0); // ignores trailing garbage
-
-// FIXME: Like the strict functions above, these give false for "ok" when there
-// is trailing garbage. Like the non-strict functions above, these return the
-// value when there is trailing garbage. It would be better if these were more
-// consistent with the above functions instead.
-WTF_EXPORT double charactersToDouble(const LChar*, size_t, bool* ok = 0);
-WTF_EXPORT double charactersToDouble(const UChar*, size_t, bool* ok = 0);
-WTF_EXPORT double charactersToDouble(const LChar*, size_t, size_t& parsedLength);
-WTF_EXPORT double charactersToDouble(const UChar*, size_t, size_t& parsedLength);
-WTF_EXPORT float charactersToFloat(const LChar*, size_t, bool* ok = 0);
-WTF_EXPORT float charactersToFloat(const UChar*, size_t, bool* ok = 0);
-WTF_EXPORT float charactersToFloat(const LChar*, size_t, size_t& parsedLength);
-WTF_EXPORT float charactersToFloat(const UChar*, size_t, size_t& parsedLength);
-
enum TrailingZerosTruncatingPolicy {
KeepTrailingZeros,
TruncateTrailingZeros
@@ -685,16 +652,6 @@ using WTF::emptyString;
using WTF::emptyString16Bit;
using WTF::append;
using WTF::charactersAreAllASCII;
-using WTF::charactersToIntStrict;
-using WTF::charactersToUIntStrict;
-using WTF::charactersToInt64Strict;
-using WTF::charactersToUInt64Strict;
-using WTF::charactersToInt;
-using WTF::charactersToUInt;
-using WTF::charactersToInt64;
-using WTF::charactersToUInt64;
-using WTF::charactersToDouble;
-using WTF::charactersToFloat;
using WTF::equal;
using WTF::equalIgnoringCase;
using WTF::find;
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringToNumber.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698