tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iswalpha.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCTYPE_ISWALPHA_HPP
4#define TETL_CWCTYPE_ISWALPHA_HPP
5
7
8namespace etl {
20[[nodiscard]] constexpr auto iswalpha(wint_t ch) noexcept -> int
21{
22 auto isLower = ch >= L'a' && ch <= L'z';
23 auto isUpper = ch >= L'A' && ch <= L'Z';
24 return static_cast<int>(isLower || isUpper);
25}
26} // namespace etl
27
28#endif // TETL_CWCTYPE_ISWALPHA_HPP
constexpr auto iswalpha(wint_t ch) noexcept -> int
Checks if the given wide character is an alphabetic character, i.e. either an uppercase letter (ABCDE...
Definition iswalpha.hpp:20
Definition adjacent_find.hpp:8
unsigned int wint_t
Definition wint_t.hpp:29