tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iswcntrl.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCTYPE_ISWCNTRL_HPP
4#define TETL_CWCTYPE_ISWCNTRL_HPP
5
7
8namespace etl {
9
20[[nodiscard]] constexpr auto iswcntrl(wint_t ch) noexcept -> int
21{
22 return static_cast<int>((ch <= wint_t(0x1F)) || ch == wint_t(0x7F));
23}
24
25} // namespace etl
26
27#endif // TETL_CWCTYPE_ISWCNTRL_HPP
constexpr auto iswcntrl(wint_t ch) noexcept -> int
Checks if the given wide character is a control character, i.e. codes 0x00-0x1F and 0x7F and any cont...
Definition iswcntrl.hpp:20
Definition adjacent_find.hpp:8
unsigned int wint_t
Definition wint_t.hpp:29