Verify an option name
| 308 | |
| 309 | /// Verify an option name |
| 310 | inline bool valid_name_string(const std::string &str) { |
| 311 | if (str.empty() || !valid_first_char(str[0])) return false; |
| 312 | for (auto c : str.substr(1)) |
| 313 | if (!valid_later_char(c)) return false; |
| 314 | return true; |
| 315 | } |
| 316 | |
| 317 | /// Verify that str consists of letters only |
| 318 | inline bool isalpha(const std::string &str) { |
no test coverage detected