tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strrchr.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CSTRING_STRRCHR_HPP
4#define TETL_CSTRING_STRRCHR_HPP
5
8
9namespace etl {
10
13
23[[nodiscard]] constexpr auto strrchr(char const* str, int ch) noexcept -> char const*
24{
25 return etl::detail::strrchr<char const, etl::size_t>(str, ch);
26}
27
28[[nodiscard]] constexpr auto strrchr(char* str, int ch) noexcept -> char*
29{
30 return etl::detail::strrchr<char, etl::size_t>(str, ch);
31}
32
34
35} // namespace etl
36
37#endif // TETL_CSTRING_STRRCHR_HPP
constexpr auto strrchr(char const *str, int ch) noexcept -> char const *
Finds the last occurrence of the character static_cast<char>(ch) in the byte string pointed to by str...
Definition strrchr.hpp:23
Definition adjacent_find.hpp:8