SeqAn3
3.4.0
The Modern C++ library for sequence analysis.
Toggle main menu visibility
Loading...
Searching...
No Matches
take_line_view.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
9
10
#pragma once
11
12
#include <
seqan3/io/views/detail/take_until_view.hpp
>
13
#include <
seqan3/utility/char_operations/predicate.hpp
>
14
15
// ============================================================================
16
// detail::take_line (adaptor instance definition)
17
// ============================================================================
18
19
namespace
seqan3::detail
20
{
70
inline
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
82
inline
constexpr
auto
take_line_or_throw = detail::take_until_or_throw_and_consume(
is_char
<
'\r'
> ||
is_char
<
'\n'
>);
83
84
}
// 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
Version:
seqan3
io
views
detail
take_line_view.hpp
Generated on
for SeqAn3 by
1.17.0