| 44 | } |
| 45 | |
| 46 | int StringToInt(const String & str, int radix) |
| 47 | { |
| 48 | if (str.StartsWith("0x")) |
| 49 | return (int)strtoll(str.Buffer(), NULL, 16); |
| 50 | else |
| 51 | return (int)strtoll(str.Buffer(), NULL, radix); |
| 52 | } |
| 53 | unsigned int StringToUInt(const String & str, int radix) |
| 54 | { |
| 55 | if (str.StartsWith("0x")) |
no test coverage detected