| 95 | }//namespace |
| 96 | |
| 97 | static 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 | |
| 113 | CommandLineParser::CommandLineParser(int argc, const char* const argv[], const char* keys) |
| 114 | { |
no test coverage detected