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

Return the result of comparing to another string

Synopsis

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

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

Description

See core::string_view::compare

Return Value

The result of the comparison

Parameters

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