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

Method isPositive

lib/mathlib.cpp:690–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690bool MathLib::isPositive(const std::string &str)
691{
692 if (str.empty())
693 return false;
694 return !MathLib::isNegative(str);
695}
696
697static bool isValidIntegerSuffixIt(std::string::const_iterator it, std::string::const_iterator end, bool supportMicrosoftExtensions=true)
698{

Callers

nothing calls this directly

Calls 2

isNegativeFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected