MCPcopy Create free account
hub / github.com/comaps/comaps / IsASCIINumeric

Function IsASCIINumeric

libs/base/string_utils.hpp:148–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146bool IsASCIIDigit(UniChar c);
147template <class StringT>
148bool IsASCIINumeric(StringT const & str)
149{
150 return !std::empty(str) && std::all_of(std::begin(str), std::end(str), &IsASCIIDigit);
151}
152inline bool IsASCIINumeric(char const * s)
153{
154 return IsASCIINumeric(std::string_view(s));

Callers 4

IsNumberTokensMethod · 0.85
ParseRoadShieldMethod · 0.85
ParseRoadShieldMethod · 0.85
UNIT_TESTFunction · 0.85

Calls 3

emptyFunction · 0.85
beginFunction · 0.70
endFunction · 0.70

Tested by 1

UNIT_TESTFunction · 0.68