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
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_CWCHAR_WCSSPN_HPP
5
#
define
TETL_CWCHAR_WCSSPN_HPP
6
7
#
include
<
etl
/
_cstddef
/
size_t
.
hpp
>
8
#
include
<
etl
/
_strings
/
cstr
.
hpp
>
9
10
namespace
etl
{
11
12
/// \brief Returns the length of the maximum initial segment of the wide string
13
/// pointed to by dest, that consists of only the characters found in wide
14
/// string pointed to by src.
15
///
16
/// https://en.cppreference.com/w/cpp/string/wide/wcsspn
17
[[
nodiscard
]]
constexpr
auto
wcsspn
(
wchar_t
const
* dest,
wchar_t
const
* src)
noexcept
->
etl
::size_t
18
{
19
return
etl
::detail::strspn<
wchar_t
,
etl
::size_t,
true
>(dest, src);
20
}
21
}
// namespace etl
22
23
#
endif
// TETL_CWCHAR_WCSSPN_HPP
etl
Definition
adjacent_find.hpp:9
etl::wcsspn
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:17
include
etl
_cwchar
wcsspn.hpp
Generated on Sun Sep 7 2025 19:14:54 for tetl by
1.9.8