MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / isNumberLike

Function isNumberLike

externals/simplecpp/simplecpp.h:177–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 bool startsWithOneOf(const char c[]) const;
176 bool endsWithOneOf(const char c[]) const;
177 static bool isNumberLike(const std::string& s) {
178 return std::isdigit(static_cast<unsigned char>(s[0])) ||
179 (s.size() > 1U && (s[0] == '-' || s[0] == '+') && std::isdigit(static_cast<unsigned char>(s[1])));
180 }
181
182 TokenString macro;
183 char op;

Callers 2

update_property_infoMethod · 0.85
simplecpp.hFile · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected