tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcsspn.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCHAR_WCSSPN_HPP
4#define TETL_CWCHAR_WCSSPN_HPP
5
8
9namespace etl {
10
16[[nodiscard]] constexpr auto wcsspn(wchar_t const* dest, wchar_t const* src) noexcept -> etl::size_t
17{
18 return etl::detail::strspn<wchar_t, etl::size_t, true>(dest, src);
19}
20} // namespace etl
21
22#endif // TETL_CWCHAR_WCSSPN_HPP
Definition adjacent_find.hpp:8
constexpr auto wcsspn(wchar_t const *dest, wchar_t const *src) noexcept -> etl::size_t
Returns the length of the maximum initial segment of the wide string pointed to by dest,...
Definition wcsspn.hpp:16
TETL_BUILTIN_SIZET size_t
etl::size_t is the unsigned integer type of the result of the sizeof operator.
Definition size_t.hpp:14