compare

Return the result of comparing to another string

Synopsis

int
compare(string_view other) const noexcept;

Declared in file <include/boost/url/decode_view.hpp> on line 511

Defined in file <src/decode_view.cpp> on line 82

Description

The length of the sequences to compare is the smaller of size() and other.size(). The function compares the two strings as if by calling `char_traits <char >::compare(to_string().data(), v.data(), rlen)`. This means the comparison is performed with percent-decoding applied to the current string.