tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcschr.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCHAR_WCSCHR_HPP
4#define TETL_CWCHAR_WCSCHR_HPP
5
7
8namespace etl {
13[[nodiscard]] constexpr auto wcschr(wchar_t* str, int ch) -> wchar_t* { return etl::detail::strchr<wchar_t>(str, ch); }
14
19[[nodiscard]] constexpr auto wcschr(wchar_t const* str, int ch) -> wchar_t const*
20{
21 return etl::detail::strchr<wchar_t const>(str, ch);
22}
23} // namespace etl
24#endif // TETL_CWCHAR_WCSCHR_HPP
Definition adjacent_find.hpp:8
constexpr auto wcschr(wchar_t *str, int ch) -> wchar_t *
Finds the first occurrence of the wide character ch in the wide string pointed to by str.
Definition wcschr.hpp:13