MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / countDigits

Function countDigits

src/server/api/url_parser.cpp:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 > x3::lit('/') > query;
33
34std::size_t countDigits(unsigned v)
35{
36 std::size_t count = 1;
37 while (v >= 10)
38 {
39 v /= 10;
40 ++count;
41 }
42 return count;
43}
44
45} // namespace
46

Callers 1

parseURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected