:relfileprefix: ../../../ [#14320699371DBD96F87E209DE3717FA06806C01A] = 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(xref:boost/urls/decode_view.adoc[decode_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.to_string().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* | `decode_view` |===