CaseInsensitiveEqual

Locale-independent, ASCII-only comparator

Synopsis

Declared in <util/strencodings.h>

bool
CaseInsensitiveEqual(
    std::string_view s1,
    std::string_view s2);

Return Value

true if s1 == s2 when both strings are converted to lowercase

Parameters

NameDescription
s1 [in]a string to compare
s2 [in]another string to compare