Lines Matching refs:s
35 bool ParseUint(const char* s, T* out, T max = std::numeric_limits<T>::max(),
38 while (isspace(*s)) {
39 s++;
42 if (s[0] == '-') {
47 int base = (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) ? 16 : 10;
50 unsigned long long int result = strtoull(s, &end, base);
52 if (end == s) {
77 bool ParseUint(const std::string& s, T* out, T max = std::numeric_limits<T>::max(),
79 return ParseUint(s.c_str(), out, max, allow_suffixes);
83 bool ParseByteCount(const char* s, T* out, T max = std::numeric_limits<T>::max()) {
84 return ParseUint(s, out, max, true);
89 bool ParseByteCount(const std::string& s, T* out, T max = std::numeric_limits<T>::max()) {
90 return ParseByteCount(s.c_str(), out, max);
98 bool ParseInt(const char* s, T* out,
102 while (isspace(*s)) {
103 s++;
106 int base = (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) ? 16 : 10;
109 long long int result = strtoll(s, &end, base);
113 if (s == end || *end != '\0') {
129 bool ParseInt(const std::string& s, T* out,
132 return ParseInt(s.c_str(), out, min, max);