tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcspbrk.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2020 Tobias Hienzsch
3
4#ifndef TETL_CWCHAR_WCSPBRK_HPP
5#define TETL_CWCHAR_WCSPBRK_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_strings/cstr.hpp>
9
10namespace etl {
11
12/// \brief Finds the first character in wide string pointed to by dest, that is
13/// also in wide string pointed to by str.
14///
15/// https://en.cppreference.com/w/cpp/string/wide/wcspbrk
16[[nodiscard]] constexpr auto wcspbrk(wchar_t* dest, wchar_t* breakset) noexcept -> wchar_t*
17{
18 return etl::detail::strpbrk_impl<wchar_t, etl::size_t>(dest, breakset);
19}
20
21/// \brief Finds the first character in wide string pointed to by dest, that is
22/// also in wide string pointed to by str.
23///
24/// https://en.cppreference.com/w/cpp/string/wide/wcspbrk
25[[nodiscard]] constexpr auto wcspbrk(wchar_t const* dest, wchar_t const* breakset) noexcept -> wchar_t const*
26{
27 return etl::detail::strpbrk_impl<wchar_t const, etl::size_t>(dest, breakset);
28}
29
30} // namespace etl
31#endif // TETL_CWCHAR_WCSPBRK_HPP
Definition adjacent_find.hpp:9
constexpr auto wcspbrk(wchar_t *dest, wchar_t *breakset) noexcept -> wchar_t *
Finds the first character in wide string pointed to by dest, that is also in wide string pointed to b...
Definition wcspbrk.hpp:16
constexpr auto wcspbrk(wchar_t const *dest, wchar_t const *breakset) noexcept -> wchar_t const *
Finds the first character in wide string pointed to by dest, that is also in wide string pointed to b...
Definition wcspbrk.hpp:25