MCPcopy Create free account
hub / github.com/cpputest/cpputest / AtoU

Method AtoU

src/CppUTest/SimpleString.cpp:138–149  ·  view source on GitHub ↗

does not support + or - prefixes

Source from the content-addressed store, hash-verified

136
137// does not support + or - prefixes
138unsigned 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
151int SimpleString::AtoI(const char* str)
152{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected