xieite::islower()

Defined in header <xieite/data/islower.hpp>

An improved replacement and extension of std::islower().


Declarations

#0
[[nodiscard]] constexpr bool islower(xieite::is_char auto c) noexcept;
Checks if a single character is lowercase alphabetic.

#1
template<xieite::is_char Char, typename Traits>
[[nodiscard]] constexpr bool islower(std::basic_string_view<Char, Traits> strv) noexcept;
Checks if a string consists only of lowercase alphabetic characters.

#2
template<xieite::is_char Char, typename Traits, typename Alloc>
[[nodiscard]] constexpr bool islower(const std::basic_string_view<Char, Traits, Alloc>& str) noexcept;
Defers to #1 after deducing Char.

#2
template<xieite::is_char Char, std::size_t length>
[[nodiscard]] constexpr bool islower(const xieite::paren<Char[length]>& str) noexcept;
Defers to #1 after deducing Char.


Example

static_assert(xieite::islower('a'));
static_assert(not xieite::islower('A'));
[View in Compiler Explorer]