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
6
#include <
etl/_cstddef/size_t.hpp
>
7
#include <
etl/_strings/cstr.hpp
>
8
9
namespace
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
cstr.hpp
etl::strrchr
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
etl
Definition
adjacent_find.hpp:8
size_t.hpp
include
etl
_cstring
strrchr.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0