SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
take_line_view.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
10#pragma once
11
14
15// ============================================================================
16// detail::take_line (adaptor instance definition)
17// ============================================================================
18
19namespace seqan3::detail
20{
70inline constexpr auto take_line = detail::take_until_and_consume(is_char<'\r'> || is_char<'\n'>);
71
72// ============================================================================
73// detail::take_line_or_throw (adaptor instance definition)
74// ============================================================================
75
82inline constexpr auto take_line_or_throw = detail::take_until_or_throw_and_consume(is_char<'\r'> || is_char<'\n'>);
83
84} // namespace seqan3::detail
constexpr auto is_char
Checks whether a given letter is the same as the template non-type argument.
Definition predicate.hpp:60
Provides character predicates for tokenisation.
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
Hide me