SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
to_upper.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 
14 #pragma once
15 
16 #include <seqan3/std/ranges>
17 
21 
22 namespace seqan3::views
23 {
24 
70 #ifdef SEQAN3_DEPRECATED_310
71 SEQAN3_DEPRECATED_310 inline auto const to_upper = deep{std::views::transform([] (auto const in) noexcept
72 {
73  static_assert(builtin_character<std::remove_cvref_t<decltype(in)>>,
74  "The value type of seqan3::views::to_upper must model the seqan3::builtin_character.");
75  return seqan3::to_upper(in);
76 })};
77 #endif // SEQAN3_DEPRECATED_310
78 
80 
81 } // namespace seqan3::views
Core alphabet concept and free function/type trait wrappers.
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view.
Definition: deep.hpp:104
decltype(detail::transform< trait_t >(list_t{})) transform
Apply a transformation trait to every type in the list and return a seqan3::type_list of the results.
Definition: traits.hpp:471
auto const to_upper
A view that calls seqan3::to_upper() on each element in the input range.
Definition: to_upper.hpp:71
This concept encompasses exactly the types char, signed char, unsigned char, wchar_t,...
The SeqAn namespace for views.
Definition: char_to.hpp:22
constexpr char_type to_upper(char_type const c) noexcept
Converts 'a'-'z' to 'A'-'Z' respectively; other characters are returned as is.
Definition: transform.hpp:97
#define SEQAN3_DEPRECATED_310
Deprecation message for SeqAn 3.1.0 release.
Definition: platform.hpp:203
Adaptations of concepts from the Ranges TS.
Provides utilities for modifying characters.
Provides seqan3::views::deep.