tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
isgraph.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CCTYPE_ISGRAPH_HPP
4#define TETL_CCTYPE_ISGRAPH_HPP
5
10
11namespace etl {
12
24[[nodiscard]] constexpr auto isgraph(int ch) noexcept -> int
25{
26 auto const isDigit = etl::isdigit(ch) != 0;
27 auto const isUpper = etl::isupper(ch) != 0;
28 auto const isLower = etl::islower(ch) != 0;
29 auto const isPunct = etl::ispunct(ch) != 0;
30
31 return static_cast<int>(isDigit || isLower || isUpper || isPunct);
32}
33} // namespace etl
34
35#endif // TETL_CCTYPE_ISGRAPH_HPP
constexpr auto isupper(int ch) noexcept -> int
Checks if the given character is classified as a uppercase character according to the default C local...
Definition isupper.hpp:19
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 ispunct(int ch) noexcept -> int
Checks if the given character is a punctuation character as classified by the current C locale.
Definition ispunct.hpp:22
constexpr auto islower(int ch) noexcept -> int
Checks if the given character is classified as a lowercase character according to the default C local...
Definition islower.hpp:19
constexpr auto isdigit(int ch) noexcept -> int
Checks if the given character is one of the 10 decimal digits: 0123456789.
Definition isdigit.hpp:15
Definition adjacent_find.hpp:8