tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iswgraph.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCTYPE_ISWGRAPH_HPP
4#define TETL_CWCTYPE_ISWGRAPH_HPP
5
10
11namespace etl {
12
26[[nodiscard]] constexpr auto iswgraph(wint_t ch) noexcept -> int
27{
28 auto const isDigit = iswdigit(ch) != 0;
29 auto const isUpper = iswupper(ch) != 0;
30 auto const isLower = iswlower(ch) != 0;
31 auto const isPunct = iswpunct(ch) != 0;
32 return static_cast<int>(isDigit || isLower || isUpper || isPunct);
33}
34} // namespace etl
35
36#endif // TETL_CWCTYPE_ISWGRAPH_HPP
constexpr auto iswupper(wint_t ch) noexcept -> int
Checks if the given wide character is an uppercase letter, i.e. one of ABCDEFGHIJKLMNOPQRSTUVWXYZ or ...
Definition iswupper.hpp:20
constexpr auto iswdigit(wint_t ch) noexcept -> int
Checks if the given wide character corresponds (if narrowed) to one of the ten decimal digit characte...
Definition iswdigit.hpp:18
constexpr auto iswlower(wint_t ch) noexcept -> int
Checks if the given wide character is a lowercase letter, i.e. one of abcdefghijklmnopqrstuvwxyz or a...
Definition iswlower.hpp:20
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
constexpr auto iswpunct(wint_t ch) noexcept -> int
Checks if the given wide character is a punctuation character, i.e. it is one of !...
Definition iswpunct.hpp:20
Definition adjacent_find.hpp:8
unsigned int wint_t
Definition wint_t.hpp:29