tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcsrchr.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CWCHAR_WCSRCHR_HPP
4
#define TETL_CWCHAR_WCSRCHR_HPP
5
6
#include <
etl/_cstddef/size_t.hpp
>
7
#include <
etl/_strings/cstr.hpp
>
8
9
namespace
etl
{
10
15
[[nodiscard]]
constexpr
auto
wcsrchr
(
wchar_t
* str,
int
ch) ->
wchar_t
*
16
{
17
return
etl::detail::strrchr<wchar_t, etl::size_t>(str, ch);
18
}
19
24
[[nodiscard]]
constexpr
auto
wcsrchr
(
wchar_t
const
* str,
int
ch) ->
wchar_t
const
*
25
{
26
return
etl::detail::strrchr<wchar_t const, etl::size_t>(str, ch);
27
}
28
}
// namespace etl
29
#endif
// TETL_CWCHAR_WCSRCHR_HPP
cstr.hpp
etl
Definition
adjacent_find.hpp:8
etl::wcsrchr
constexpr auto wcsrchr(wchar_t *str, int ch) -> wchar_t *
Finds the last occurrence of the wide character ch in the wide string pointed to by str.
Definition
wcsrchr.hpp:15
size_t.hpp
include
etl
_cwchar
wcsrchr.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0