Locale-independent ASCII-only version of isalnum.
| 617 | |
| 618 | // Locale-independent ASCII-only version of isalnum. |
| 619 | inline bool isalnum_nolocale(char c) { |
| 620 | return isalpha_nolocale(c) || (c >= '0' && c <= '9'); |
| 621 | } |
| 622 | |
| 623 | inline bool validate_mod_id(std::string_view str) { |
| 624 | // Disallow empty ids. |
no test coverage detected