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
6namespace 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
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
Definition adjacent_find.hpp:8