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

Function isHex

externals/simplecpp/simplecpp.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58#endif
59
60static bool isHex(const std::string &s)
61{
62 return s.size()>2 && (s.compare(0,2,"0x")==0 || s.compare(0,2,"0X")==0);
63}
64
65static bool isOct(const std::string &s)
66{

Callers 3

stringToLLFunction · 0.85
stringToULLFunction · 0.85
combineOperatorsMethod · 0.85

Calls 2

sizeMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected