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
8
9namespace 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
Definition adjacent_find.hpp:8
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