MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / skipDigits

Function skipDigits

src/Utility/src/String.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace OpenLoco::Utility
16{
17 static std::string_view skipDigits(std::string_view s)
18 {
19 while (!s.empty() && (s[0] == '.' || s[0] == ',' || isdigit(s[0])))
20 {
21 s = s.substr(1);
22 }
23 return s;
24 }
25
26 static std::pair<int32_t, std::string_view> parseNextNumber(std::string_view s)
27 {

Callers 1

parseNextNumberFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected