tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strstr.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CSTRING_STRSTR_HPP
4
#define TETL_CSTRING_STRSTR_HPP
5
6
#include <
etl/_strings/cstr.hpp
>
7
8
namespace
etl
{
9
12
17
[[nodiscard]]
constexpr
auto
strstr
(
char
* haystack,
char
* needle)
noexcept
->
char
*
18
{
19
return
etl::detail::strstr_impl<char>(haystack, needle);
20
}
21
22
[[nodiscard]]
constexpr
auto
strstr
(
char
const
* haystack,
char
const
* needle)
noexcept
->
char
const
*
23
{
24
return
etl::detail::strstr_impl<char const>(haystack, needle);
25
}
26
28
29
}
// namespace etl
30
31
#endif
// TETL_CSTRING_STRSTR_HPP
cstr.hpp
etl::strstr
constexpr auto strstr(char *haystack, char *needle) noexcept -> char *
Finds the first occurrence of the byte string needle in the byte string pointed to by haystack....
Definition
strstr.hpp:17
etl
Definition
adjacent_find.hpp:8
include
etl
_cstring
strstr.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0