tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iswprint.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCTYPE_ISWPRINT_HPP
4#define TETL_CWCTYPE_ISWPRINT_HPP
5
8
9namespace etl {
22[[nodiscard]] constexpr auto iswprint(wint_t ch) noexcept -> int
23{
24 return static_cast<int>(etl::iswgraph(ch) != 0 || ch == ' ');
25}
26
27} // namespace etl
28
29#endif // TETL_CWCTYPE_ISWPRINT_HPP
constexpr auto iswprint(wint_t ch) noexcept -> int
Checks if the given wide character can be printed, i.e. it is either a number (0123456789),...
Definition iswprint.hpp:22
constexpr auto iswgraph(wint_t ch) noexcept -> int
Checks if the given wide character has a graphical representation, i.e. it is either a number (012345...
Definition iswgraph.hpp:26
Definition adjacent_find.hpp:8
unsigned int wint_t
Definition wint_t.hpp:29