tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcsncmp.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCHAR_WCSNCMP_HPP
4#define TETL_CWCHAR_WCSNCMP_HPP
5
8
9namespace etl {
10
20[[nodiscard]] constexpr auto wcsncmp(wchar_t const* lhs, wchar_t const* rhs, etl::size_t count) -> int
21{
22 return etl::detail::strncmp<wchar_t, etl::size_t>(lhs, rhs, count);
23}
24
25} // namespace etl
26#endif // TETL_CWCHAR_WCSNCMP_HPP
constexpr auto count(InputIt first, InputIt last, T const &value) -> typename iterator_traits< InputIt >::difference_type
Returns the number of elements in the range [first, last) satisfying specific criteria....
Definition count.hpp:21
Definition adjacent_find.hpp:8
constexpr auto wcsncmp(wchar_t const *lhs, wchar_t const *rhs, etl::size_t count) -> int
Compares at most count wide characters of two null-terminated wide strings. The comparison is done le...
Definition wcsncmp.hpp:20
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