/src/Fast-DDS/thirdparty/taocpp-pegtl/pegtl/internal/eolf.hpp
Line | Count | Source (jump to first uncovered line) |
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_INTERNAL_EOLF_HPP |
5 | | #define TAO_PEGTL_INTERNAL_EOLF_HPP |
6 | | |
7 | | #include "../config.hpp" |
8 | | |
9 | | #include "skip_control.hpp" |
10 | | |
11 | | #include "../analysis/generic.hpp" |
12 | | |
13 | | namespace tao |
14 | | { |
15 | | namespace TAO_PEGTL_NAMESPACE |
16 | | { |
17 | | namespace internal |
18 | | { |
19 | | struct eolf |
20 | | { |
21 | | using analyze_t = analysis::generic< analysis::rule_type::opt >; |
22 | | |
23 | | template< typename Input > |
24 | | static bool match( Input& in ) noexcept( noexcept( Input::eol_t::match( in ) ) ) |
25 | 0 | { |
26 | 0 | const auto p = Input::eol_t::match( in ); |
27 | 0 | return p.first || ( !p.second ); |
28 | 0 | } Unexecuted instantiation: bool tao::pegtl::internal::eolf::match<tao::pegtl::memory_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >(tao::pegtl::memory_input<(tao::pegtl::tracking_mode)0, tao::pegtl::ascii::eol::lf_crlf, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >&) Unexecuted instantiation: bool tao::pegtl::internal::eolf::match<tao::pegtl::memory_input<(tao::pegtl::tracking_mode)1, tao::pegtl::ascii::eol::lf_crlf, char const*> >(tao::pegtl::memory_input<(tao::pegtl::tracking_mode)1, tao::pegtl::ascii::eol::lf_crlf, char const*>&) |
29 | | }; |
30 | | |
31 | | template<> |
32 | | struct skip_control< eolf > : std::true_type |
33 | | { |
34 | | }; |
35 | | |
36 | | } // namespace internal |
37 | | |
38 | | } // namespace TAO_PEGTL_NAMESPACE |
39 | | |
40 | | } // namespace tao |
41 | | |
42 | | #endif |