tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
islower.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2020 Tobias Hienzsch
3
4
#
ifndef
TETL_CCTYPE_ISLOWER_HPP
5
#
define
TETL_CCTYPE_ISLOWER_HPP
6
7
namespace
etl
{
8
9
/// \brief Checks if the given character is classified as a lowercase character
10
/// according to the default C locale.
11
///
12
/// \param ch Character to classify.
13
///
14
/// \returns Non-zero value if the character is a lowercase letter, zero
15
/// otherwise.
16
///
17
/// https://en.cppreference.com/w/cpp/string/byte/islower
18
///
19
/// \ingroup cctype
20
[[
nodiscard
]]
constexpr
auto
islower
(
int
ch)
noexcept
->
int
21
{
22
return
static_cast
<
int
>(ch >=
'a'
and
ch <=
'z'
);
23
}
24
}
// namespace etl
25
26
#
endif
// TETL_CCTYPE_ISLOWER_HPP
etl::islower
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:20
etl
Definition
adjacent_find.hpp:9
include
etl
_cctype
islower.hpp
Generated on Sun Sep 7 2025 19:14:48 for tetl by
1.9.8