SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
take_line_view.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2021, 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 
22 namespace seqan3::detail
23 {
24 
78 inline auto constexpr take_line = detail::take_until_and_consume(is_char<'\r'> || is_char<'\n'>);
79 
80 // ============================================================================
81 // detail::take_line_or_throw (adaptor instance definition)
82 // ============================================================================
83 
90 inline auto constexpr take_line_or_throw = detail::take_until_or_throw_and_consume(is_char<'\r'> || is_char<'\n'>);
91 
93 
94 } // namespace seqan3::detail
95 
96 #ifdef SEQAN3_DEPRECATED_310
97 namespace seqan3::views
98 {
99 
105 
112 
113 } // namespace seqan3::views
114 #endif // SEQAN3_DEPRECATED_310
constexpr auto take_line
A view adaptor that returns a single line from the underlying range.
Definition: take_line_view.hpp:104
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:111
The SeqAn namespace for views.
Definition: char_to.hpp:22
#define SEQAN3_DEPRECATED_310
Deprecation message for SeqAn 3.1.0 release.
Definition: platform.hpp:203
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
Provides character predicates for tokenisation.