module; #include #include #include #include export module utils; export constexpr bool isletter(char ch) { return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'); } export template constexpr bool is_valid_character_from_set(std::array haystack, char needle) { for(auto& a : haystack) { for(auto& c : a) { if (c == needle) { return true; } } } return false; }