tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strcspn.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CSTRING_STRCSPN_HPP
4
#define TETL_CSTRING_STRCSPN_HPP
5
6
#include <
etl/_cstddef/size_t.hpp
>
7
#include <
etl/_strings/cstr.hpp
>
8
9
namespace
etl
{
10
20
[[nodiscard]]
constexpr
auto
strcspn
(
char
const
* dest,
char
const
* src)
noexcept
->
etl::size_t
21
{
22
return
etl::detail::strspn<char, etl::size_t, false>(dest, src);
23
}
24
25
}
// namespace etl
26
27
#endif
// TETL_CSTRING_STRCSPN_HPP
cstr.hpp
etl::strcspn
constexpr auto strcspn(char const *dest, char const *src) noexcept -> etl::size_t
Returns the length of the maximum initial segment of the byte string pointed to by dest,...
Definition
strcspn.hpp:20
etl
Definition
adjacent_find.hpp:8
etl::size_t
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
size_t.hpp
include
etl
_cstring
strcspn.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0