SeqAn3 3.3.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// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6// -----------------------------------------------------------------------------------------------------
7
13#pragma once
14
17
18// ============================================================================
19// detail::take_line (adaptor instance definition)
20// ============================================================================
21
22namespace seqan3::detail
23{
73inline constexpr auto take_line = detail::take_until_and_consume(is_char<'\r'> || is_char<'\n'>);
74
75// ============================================================================
76// detail::take_line_or_throw (adaptor instance definition)
77// ============================================================================
78
86
87} // namespace seqan3::detail
constexpr auto take_until_or_throw_and_consume
A view adaptor that returns elements from the underlying range until the functor evaluates to true (t...
Definition: take_until_view.hpp:602
constexpr auto take_until_and_consume
A view adaptor that returns elements from the underlying range until the functor evaluates to true (o...
Definition: take_until_view.hpp:588
constexpr auto take_line_or_throw
A view adaptor that returns a single line from the underlying range (throws if there is no end-of-lin...
Definition: take_line_view.hpp:85
constexpr auto take_line
A view adaptor that returns a single line from the underlying range or the full range if there is no ...
Definition: take_line_view.hpp:73
constexpr auto is_char
Checks whether a given letter is the same as the template non-type argument.
Definition: predicate.hpp:63
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
Provides character predicates for tokenisation.
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.