tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strspn.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CSTRING_STRSPN_HPP
4#define TETL_CSTRING_STRSPN_HPP
5
8
9namespace etl {
10
18[[nodiscard]] constexpr auto strspn(char const* dest, char const* src) noexcept -> etl::size_t
19{
20 return etl::detail::strspn<char, etl::size_t, true>(dest, src);
21}
22
23} // namespace etl
24
25#endif // TETL_CSTRING_STRSPN_HPP
constexpr auto strspn(char const *dest, char const *src) noexcept -> etl::size_t
Returns the length of the maximum initial segment (span) of the byte string pointed to by dest,...
Definition strspn.hpp:18
Definition adjacent_find.hpp:8
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