Return the case-insensitive comparison of s0 and s1

Synopsis

Declared in header </boost/url/grammar/ci_string.hpp#L120[boost/url/grammar/ci_string.hpp,window=blank_]>

int
ci_compare(
    string_view s0,
    string_view s1) noexcept;

Description

This returns the lexicographical comparison of two strings, ignoring case. The function is defined only for strings containing low-ASCII characters.

Example

assert( ci_compare( "boost", "Boost" ) == 0 );

Exception Safety

Throws nothing.

Return Value

  • int

Parameters

Name Type

s0

string_view

s1

string_view