does not support + or - prefixes
| 136 | |
| 137 | // does not support + or - prefixes |
| 138 | unsigned SimpleString::AtoU(const char* str) |
| 139 | { |
| 140 | while (isSpace(*str)) str++; |
| 141 | |
| 142 | unsigned result = 0; |
| 143 | for(; isDigit(*str) && *str >= '0'; str++) |
| 144 | { |
| 145 | result *= 10; |
| 146 | result += static_cast<unsigned>(*str - '0'); |
| 147 | } |
| 148 | return result; |
| 149 | } |
| 150 | |
| 151 | int SimpleString::AtoI(const char* str) |
| 152 | { |
nothing calls this directly
no outgoing calls
no test coverage detected