1 // Common/StringToInt.cpp
5 #include "StringToInt.h"
7 UInt64 ConvertStringToUInt64(const char *s, const char **end)
13 if (c < '0' || c > '9')
25 UInt64 ConvertOctStringToUInt64(const char *s, const char **end)
31 if (c < '0' || c > '7')
44 UInt64 ConvertStringToUInt64(const wchar_t *s, const wchar_t **end)
50 if (c < '0' || c > '9')
63 Int64 ConvertStringToInt64(const char *s, const char **end)
66 return -(Int64)ConvertStringToUInt64(s + 1, end);
67 return ConvertStringToUInt64(s, end);