xieite::cmp_ignore_case()

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

Compares two strings, ignoring case. Avoids allocation.


Declaration

[[nodiscard]] constexpr std::strong_ordering cmp_ignore_case(xieite::is_fwd_range<[]<xieite::is_char> {}> auto&& lhs, xieite::is_fwd_range<[]<xieite::is_char> {}> auto&& rhs) noexcept;


Example

static_assert(std::is_eq(xieite::cmp_ignore_case("HELLO", "hello")));
[View in Compiler Explorer]