| 149 | } |
| 150 | |
| 151 | int SimpleString::AtoI(const char* str) |
| 152 | { |
| 153 | while (isSpace(*str)) str++; |
| 154 | |
| 155 | char first_char = *str; |
| 156 | if (first_char == '-' || first_char == '+') str++; |
| 157 | |
| 158 | int result = 0; |
| 159 | for(; isDigit(*str); str++) |
| 160 | { |
| 161 | result *= 10; |
| 162 | result += *str - '0'; |
| 163 | } |
| 164 | return (first_char == '-') ? -result : result; |
| 165 | } |
| 166 | |
| 167 | int SimpleString::StrCmp(const char* s1, const char* s2) |
| 168 | { |
nothing calls this directly
no outgoing calls
no test coverage detected