...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Return the case-insensitive comparison of s0 and s1.
Defined in header <boost/url/grammar/ci_string.hpp>
int ci_compare( core::string_view s0, core::string_view s1);
This returns the lexicographical comparison of two strings, ignoring case. The function is defined only for strings containing low-ASCII characters.
assert( ci_compare( "boost" , "Boost" ) == 0 );
Throws nothing.
0 if the strings are equal, -1 if s0
is less than s1
, or 1 if
s0
is greater than s1.
Name |
Description |
---|---|
|
The first string |
|
The second string |
Convenience header <boost/url/grammar.hpp>