tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iswblank.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2021 Tobias Hienzsch
3
4
#
ifndef
TETL_CWCTYPE_ISWBLANK_HPP
5
#
define
TETL_CWCTYPE_ISWBLANK_HPP
6
7
#
include
<
etl
/
_cwchar
/
wint_t
.
hpp
>
8
9
namespace
etl
{
10
/// \brief Checks if the given wide character is classified as blank character
11
/// (that is, a whitespace character used to separate words in a sentence) by
12
/// the current C locale. In the default C locale, only space (0x20) and
13
/// horizontal tab (0x09) are blank characters.
14
///
15
/// \details If the value of ch is neither representable as a wchar_t nor equal
16
/// to the value of the macro WEOF, the behavior is undefined.
17
///
18
/// https://en.cppreference.com/w/cpp/string/wide/iswblank
19
///
20
/// \ingroup cwctype
21
[[
nodiscard
]]
constexpr
auto
iswblank
(wint_t ch)
noexcept
->
int
22
{
23
return
static_cast
<
int
>(ch == L' ' || ch == L'\t');
24
}
25
}
// namespace etl
26
27
#
endif
// TETL_CWCTYPE_ISWBLANK_HPP
etl::iswblank
constexpr auto iswblank(wint_t ch) noexcept -> int
Checks if the given wide character is classified as blank character (that is, a whitespace character ...
Definition
iswblank.hpp:21
etl
Definition
adjacent_find.hpp:9
include
etl
_cwctype
iswblank.hpp
Generated on Sun Sep 7 2025 19:14:54 for tetl by
1.9.8