tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcsstr.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCHAR_WCSSTR_HPP
4#define TETL_CWCHAR_WCSSTR_HPP
5
7
8namespace etl {
9
15[[nodiscard]] constexpr auto wcsstr(wchar_t* haystack, wchar_t* needle) noexcept -> wchar_t*
16{
17 return etl::detail::strstr_impl<wchar_t>(haystack, needle);
18}
19
25[[nodiscard]] constexpr auto wcsstr(wchar_t const* haystack, wchar_t const* needle) noexcept -> wchar_t const*
26{
27 return etl::detail::strstr_impl<wchar_t const>(haystack, needle);
28}
29} // namespace etl
30#endif // TETL_CWCHAR_WCSSTR_HPP
Definition adjacent_find.hpp:8
constexpr auto wcsstr(wchar_t *haystack, wchar_t *needle) noexcept -> wchar_t *
Finds the first occurrence of the wide string needle in the wide string pointed to by haystack....
Definition wcsstr.hpp:15