Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

grammar::ci_is_less

Return true if s0 is less than s1 using case-insensitive comparison.

Synopsis

Defined in header <boost/url/grammar/ci_string.hpp>

bool
ci_is_less(
    core::string_view s0,
    core::string_view s1);
Description

The comparison algorithm implements a case-insensitive total order on the set of all strings; however, it is not a lexicographical comparison. The function is defined only for strings containing low-ASCII characters.

Example
assert( ! ci_is_less( "Boost" , "boost" ) );
See Also

ci_compare, ci_is_equal.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext