tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wcslen.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_CWCHAR_WCSLEN_HPP
5#define TETL_CWCHAR_WCSLEN_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_strings/cstr.hpp>
9
10namespace etl {
11/// \brief Returns the length of a wide string, that is the number of non-null
12/// wide characters that precede the terminating null wide character.
13constexpr auto wcslen(wchar_t const* str) -> size_t
14{
15 return etl::detail::strlen<wchar_t, size_t>(str);
16}
17} // namespace etl
18
19#endif // TETL_CWCHAR_WCSLEN_HPP
Definition adjacent_find.hpp:9
constexpr auto wcslen(wchar_t const *str) -> size_t
Returns the length of a wide string, that is the number of non-null wide characters that precede the ...
Definition wcslen.hpp:13