boost::urls::grammar::string_view_base::compare

Return the result of comparing to another string

Synopses

Declared in <boost/url/grammar/string_view_base.hpp>

Return the result of comparing to another string

constexpr
int
compare(core::string_view str) const noexcept;
» more...

Return the result of comparing to another string

constexpr
int
compare(char const* s) const noexcept;
» more...

Return the result of comparing to another string

constexpr
int
compare(
    size_type pos1,
    size_type n1,
    core::string_view str) const;
» more...

Return the result of comparing to another string

constexpr
int
compare(
    size_type pos1,
    size_type n1,
    char const* s) const;
» more...

Return the result of comparing to another string

constexpr
int
compare(
    size_type pos1,
    size_type n1,
    char const* s,
    size_type n2) const;
» more...

Return the result of comparing to another string

constexpr
int
compare(
    size_type pos1,
    size_type n1,
    core::string_view str,
    size_type pos2,
    size_type n2) const;
» more...

Return Value

The result of the comparison

Parameters

NameDescription
strThe string to compare
sThe string to compare
pos1The position to start comparing from
n1The number of characters to compare
n2The number of characters to compare
pos2The position to start comparing from