[#boost-urls-grammar-ci_compare]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::ci&lowbar;compare
:relfileprefix: ../../../
:mrdocs:

Return the case&hyphen;insensitive comparison of s0 and s1

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/ci_string.hpp#L120[boost&sol;url&sol;grammar&sol;ci&lowbar;string&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ci&lowbar;compare(
    core::string&lowbar;view s0,
    core::string&lowbar;view s1) noexcept;
----

== Description

This returns the lexicographical comparison of two strings, ignoring case&period; The function is defined only for strings containing low&hyphen;ASCII characters&period;

== Example
[,cpp]
----
assert( ci_compare( "boost", "Boost" ) == 0 );
----
== Exception Safety
Throws nothing&period;

== Return Value

0 if the strings are equal, &hyphen;1 if `s0` is less than `s1`, or 1 if `s0` is greater than s1&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *s0*
| The first string
| *s1*
| The second string
|===

== See Also

xref:boost/urls/grammar/ci_is_equal-0b2.adoc[`ci&lowbar;is&lowbar;equal`], xref:boost/urls/grammar/ci_is_less.adoc[`ci&lowbar;is&lowbar;less`]&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
