| 118 | #endif |
| 119 | |
| 120 | static long long stringToLL(const std::string &s) |
| 121 | { |
| 122 | long long ret; |
| 123 | const bool hex = isHex(s); |
| 124 | const bool oct = isOct(s); |
| 125 | std::istringstream istr(hex ? s.substr(2) : oct ? s.substr(1) : s); |
| 126 | if (hex) |
| 127 | istr >> std::hex; |
| 128 | else if (oct) |
| 129 | istr >> std::oct; |
| 130 | istr >> ret; |
| 131 | return ret; |
| 132 | } |
| 133 | |
| 134 | static unsigned long long stringToULL(const std::string &s) |
| 135 | { |
no test coverage detected