tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iscntrl.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CCTYPE_ISCNTRL_HPP
4
#define TETL_CCTYPE_ISCNTRL_HPP
5
6
namespace
etl
{
7
20
[[nodiscard]]
constexpr
auto
iscntrl
(
int
ch)
noexcept
->
int
21
{
22
return
static_cast<
int
>
((ch >= 0x00 and ch <= 0x1f) or ch == 0x7F);
23
}
24
25
}
// namespace etl
26
27
#endif
// TETL_CCTYPE_ISCNTRL_HPP
etl::iscntrl
constexpr auto iscntrl(int ch) noexcept -> int
Checks if the given character is a control character as classified by the currently installed C local...
Definition
iscntrl.hpp:20
etl
Definition
adjacent_find.hpp:8
include
etl
_cctype
iscntrl.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0