tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iswspace.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CWCTYPE_ISWSPACE_HPP
4
#define TETL_CWCTYPE_ISWSPACE_HPP
5
6
#include <
etl/_cwchar/wint_t.hpp
>
7
8
namespace
etl
{
9
27
[[nodiscard]]
constexpr
auto
iswspace
(
wint_t
ch)
noexcept
->
int
28
{
29
auto
const
sp = ch == L
' '
;
30
auto
const
form = ch == L
'\f'
;
31
auto
const
line = ch == L
'\n'
;
32
auto
const
carriage = ch == L
'\r'
;
33
auto
const
hTab = ch == L
'\t'
;
34
auto
const
vTab = ch == L
'\v'
;
35
return
static_cast<
int
>
(sp || form || line || carriage || hTab || vTab);
36
}
37
}
// namespace etl
38
39
#endif
// TETL_CWCTYPE_ISWSPACE_HPP
etl::iswspace
constexpr auto iswspace(wint_t ch) noexcept -> int
Checks if the given wide character is a wide whitespace character as classified by the currently inst...
Definition
iswspace.hpp:27
etl
Definition
adjacent_find.hpp:8
etl::wint_t
unsigned int wint_t
Definition
wint_t.hpp:29
wint_t.hpp
include
etl
_cwctype
iswspace.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0