tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
isprint.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CCTYPE_ISPRINT_HPP
4#define TETL_CCTYPE_ISPRINT_HPP
5
7
8namespace etl {
20[[nodiscard]] constexpr auto isprint(int ch) noexcept -> int
21{
22 return static_cast<int>(etl::isgraph(ch) != 0 || ch == ' ');
23}
24} // namespace etl
25
26#endif // TETL_CCTYPE_ISPRINT_HPP
constexpr auto isgraph(int ch) noexcept -> int
Checks if the given character is graphic (has a graphical representation) as classified by the defaul...
Definition isgraph.hpp:24
constexpr auto isprint(int ch) noexcept -> int
Checks if ch is a printable character as classified by the default C locale.
Definition isprint.hpp:20
Definition adjacent_find.hpp:8