SeqAn3  3.0.1
The Modern C++ library for sequence analysis.
take_line.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2020, 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 // views::take_line (adaptor instance definition)
20 // ============================================================================
21 
22 namespace seqan3::views
23 {
24 
78 inline auto constexpr take_line = views::take_until_and_consume(is_char<'\r'> || is_char<'\n'>);
79 
80 // ============================================================================
81 // views::take_line_or_throw (adaptor instance definition)
82 // ============================================================================
83 
90 inline auto constexpr take_line_or_throw = views::take_until_or_throw_and_consume(is_char<'\r'> || is_char<'\n'>);
91 
93 
94 } // namespace seqan3::views
seqan3::views::take_until_and_consume
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.hpp:613
seqan3::views
The SeqAn namespace for views.
Definition: view_to_simd.hpp:672
take_until.hpp
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
seqan3::views::take_until_or_throw_and_consume
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.hpp:627
seqan3::views::take_line_or_throw
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.hpp:90
predicate.hpp
Provides character predicates for tokenisation.
seqan3::views::take_line
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.hpp:78