Verify that str consists of letters only
| 316 | |
| 317 | /// Verify that str consists of letters only |
| 318 | inline bool isalpha(const std::string &str) { |
| 319 | return std::all_of(str.begin(), str.end(), [](char c) { return std::isalpha(c, std::locale()); }); |
| 320 | } |
| 321 | |
| 322 | /// Return a lower case version of a string |
| 323 | inline std::string to_lower(std::string str) { |
no test coverage detected