:relfileprefix: ../../../ [#29BE89DB263F4826F705A26A88143545B03D862F] = Function decode_view::compare pass:v,q[Return the result of comparing to another string] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- int compare(string_view other) const noexcept; ---- == Description pass:v,q[The length of the sequences to compare is the smaller of] pass:v,q[`size()` and `other.size()`.] pass:v,q[The function compares the two strings as if by calling] pass:v,q[`char_traits] pass:v,q[::compare(to_string().data(), v.data(), rlen)`.] pass:v,q[This means the comparison is performed with] pass:v,q[percent-decoding applied to the current string.] == Return Value * `int` == Parameters |=== | Name | Type | *other* | `string_view` |===