MCPcopy Create free account
hub / github.com/creatale/node-dv / keyIsNumber

Function keyIsNumber

deps/opencv/modules/core/src/cmdparser.cpp:97–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}//namespace
96
97static bool keyIsNumber(const std::string & option, size_t start)
98{
99 bool isNumber = true;
100 size_t end = option.find_first_of('=', start);
101 end = option.npos == end ? option.length() : end;
102
103 for ( ; start < end; ++start)
104 if (!isdigit(option[start]))
105 {
106 isNumber = false;
107 break;
108 }
109
110 return isNumber;
111}
112
113CommandLineParser::CommandLineParser(int argc, const char* const argv[], const char* keys)
114{

Callers 1

CommandLineParserMethod · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected