| 406 | } |
| 407 | |
| 408 | int32 StringUtils::HexDigit(Char c) |
| 409 | { |
| 410 | int32 result = 0; |
| 411 | if (c >= '0' && c <= '9') |
| 412 | result = c - '0'; |
| 413 | else if (c >= 'a' && c <= 'f') |
| 414 | result = c + 10 - 'a'; |
| 415 | else if (c >= 'A' && c <= 'F') |
| 416 | result = c + 10 - 'A'; |
| 417 | return result; |
| 418 | } |
| 419 | |
| 420 | template<typename C, typename T> |
| 421 | bool ParseFloat(const C* str, T* ret) |
no outgoing calls
no test coverage detected