| 78 | } |
| 79 | |
| 80 | [[gnu::pure]] |
| 81 | static bool |
| 82 | IsValidName(const std::string_view s) noexcept |
| 83 | { |
| 84 | if (s.empty() || !IsAlphaASCII(s.front())) |
| 85 | return false; |
| 86 | |
| 87 | return std::none_of(s.begin(), s.end(), [=](const auto &ch) { |
| 88 | return !IsAlphaASCII(ch) && ch != '_' && ch != '-'; |
| 89 | }); |
| 90 | } |
| 91 | |
| 92 | [[gnu::pure]] |
| 93 | static bool |