tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
isalnum.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CCTYPE_ISALNUM_HPP
4
#define TETL_CCTYPE_ISALNUM_HPP
5
6
namespace
etl
{
18
[[nodiscard]]
constexpr
auto
isalnum
(
int
ch)
noexcept
->
int
19
{
20
auto
const
isDigit = ch >=
'0'
and ch <=
'9'
;
21
auto
const
isLower = ch >=
'a'
and ch <=
'z'
;
22
auto
const
isUpper = ch >=
'A'
and ch <=
'Z'
;
23
24
return
static_cast<
int
>
(isDigit || isLower || isUpper);
25
}
26
27
}
// namespace etl
28
#endif
// TETL_CCTYPE_ISALNUM_HPP
etl::isalnum
constexpr auto isalnum(int ch) noexcept -> int
Checks if the given character is an alphanumeric character as classified by the default C locale.
Definition
isalnum.hpp:18
etl
Definition
adjacent_find.hpp:8
include
etl
_cctype
isalnum.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0