Loading...
Searching...
No Matches
take_line_view.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <seqan3/io/views/detail/take_until_view.hpp>
#include <seqan3/utility/char_operations/predicate.hpp>
// ============================================================================
// detail::take_line (adaptor instance definition)
// ============================================================================
namespace seqan3::detail
{
inline constexpr auto take_line = detail::take_until_and_consume(is_char<'\r'> || is_char<'\n'>);
// ============================================================================
// detail::take_line_or_throw (adaptor instance definition)
// ============================================================================
inline constexpr auto take_line_or_throw = detail::take_until_or_throw_and_consume(is_char<'\r'> || is_char<'\n'>);
} // namespace seqan3::detail
seqan3::is_char
constexpr auto is_char
Checks whether a given letter is the same as the template non-type argument.
Definition predicate.hpp:60
predicate.hpp
Provides character predicates for tokenisation.
take_until_view.hpp
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
Hide me