Index: base/string_number_conversions.cc |
diff --git a/base/string_number_conversions.cc b/base/string_number_conversions.cc |
index 41319b35fd66dbaad3d709416a0c22b3f45b5beb..e80b6499f2e04c0787a48d08f87b306e9fc3e468 100644 |
--- a/base/string_number_conversions.cc |
+++ b/base/string_number_conversions.cc |
@@ -426,6 +426,14 @@ bool StringToUint64(const StringPiece16& input, uint64* output) { |
return String16ToIntImpl(input, output); |
} |
+bool StringToSizeT(const StringPiece& input, size_t* output) { |
+ return StringToIntImpl(input, output); |
+} |
+ |
+bool StringToSizeT(const StringPiece16& input, size_t* output) { |
+ return String16ToIntImpl(input, output); |
+} |
+ |
bool StringToDouble(const std::string& input, double* output) { |
errno = 0; // Thread-safe? It is on at least Mac, Linux, and Windows. |
char* endptr = NULL; |