mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-05 05:31:07 -05:00
27 lines
658 B
C++
27 lines
658 B
C++
|
// Copyright (c) 2015-2022 Dr. Colin Hirsch and Daniel Frey
|
||
|
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
|
||
|
|
||
|
#ifndef TAO_PEGTL_INTERNAL_BUMP_HELP_HPP
|
||
|
#define TAO_PEGTL_INTERNAL_BUMP_HELP_HPP
|
||
|
|
||
|
#include <cstddef>
|
||
|
|
||
|
#include "../config.hpp"
|
||
|
|
||
|
namespace TAO_PEGTL_NAMESPACE::internal
|
||
|
{
|
||
|
template< typename Rule, typename ParseInput >
|
||
|
void bump_help( ParseInput& in, const std::size_t count )
|
||
|
{
|
||
|
if constexpr( Rule::template can_match_eol< ParseInput::eol_t::ch > ) {
|
||
|
in.bump( count );
|
||
|
}
|
||
|
else {
|
||
|
in.bump_in_this_line( count );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
} // namespace TAO_PEGTL_NAMESPACE::internal
|
||
|
|
||
|
#endif
|