1 // Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey 2 // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ 3 4 #ifndef TAO_PEGTL_UTF8_HPP 5 #define TAO_PEGTL_UTF8_HPP 6 7 #include "config.hpp" 8 9 #include "internal/peek_utf8.hpp" 10 #include "internal/result_on_found.hpp" 11 #include "internal/rules.hpp" 12 13 namespace TAO_PEGTL_NAMESPACE::utf8 14 { 15 // clang-format off 16 struct any : internal::any< internal::peek_utf8 > {}; 17 struct bom : internal::one< internal::result_on_found::success, internal::peek_utf8, 0xfeff > {}; 18 template< char32_t... Cs > struct not_one : internal::one< internal::result_on_found::failure, internal::peek_utf8, Cs... > {}; 19 template< char32_t Lo, char32_t Hi > struct not_range : internal::range< internal::result_on_found::failure, internal::peek_utf8, Lo, Hi > {}; 20 template< char32_t... Cs > struct one : internal::one< internal::result_on_found::success, internal::peek_utf8, Cs... > {}; 21 template< char32_t Lo, char32_t Hi > struct range : internal::range< internal::result_on_found::success, internal::peek_utf8, Lo, Hi > {}; 22 template< char32_t... Cs > struct ranges : internal::ranges< internal::peek_utf8, Cs... > {}; 23 template< char32_t... Cs > struct string : internal::seq< internal::one< internal::result_on_found::success, internal::peek_utf8, Cs >... > {}; 24 // clang-format on 25 26 } // namespace TAO_PEGTL_NAMESPACE::utf8 27 28 #endif 29