tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
rfind.hpp
Go to the documentation of this file.
1
2// SPDX-License-Identifier: BSL-1.0
3
4#ifndef TETL_STRING_STRINGS_RFIND_HPP
5#define TETL_STRING_STRINGS_RFIND_HPP
6
8
9namespace etl::strings {
10
11template <typename CharT, typename Traits>
12[[nodiscard]] constexpr auto rfind(
14 CharT character,
17{
18 return haystack.rfind(character, pos);
19}
20
21template <typename CharT, typename Traits>
22[[nodiscard]] constexpr auto rfind(
27{
28 return haystack.rfind(needle, pos);
29}
30
31} // namespace etl::strings
32
33#endif // TETL_STRING_STRINGS_RFIND_HPP
Definition find.hpp:8
constexpr auto rfind(basic_string_view< CharT, Traits > haystack, CharT character, typename basic_string_view< CharT, Traits >::size_type pos) noexcept -> typename basic_string_view< CharT, Traits >::size_type
Definition rfind.hpp:12
The class template basic_string_view describes an object that can refer to a constant contiguous sequ...
Definition basic_string_view.hpp:34
etl::size_t size_type
Definition basic_string_view.hpp:43