[#boost-urls-grammar-string_view_base-compare-0d] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/string_view_base.adoc[string_view_base]::compare :relfileprefix: ../../../../ :mrdocs: Return the result of comparing to another string == Synopses Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/string_view_base.hpp#L413[boost/url/grammar/string_view_base.hpp]>` Return the result of comparing to another string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int xref:boost/urls/grammar/string_view_base/compare-02.adoc[compare](core::string_view str) const noexcept; ---- [.small]#xref:boost/urls/grammar/string_view_base/compare-02.adoc[_» more..._]# Return the result of comparing to another string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int xref:boost/urls/grammar/string_view_base/compare-07.adoc[compare](char const* s) const noexcept; ---- [.small]#xref:boost/urls/grammar/string_view_base/compare-07.adoc[_» more..._]# Return the result of comparing to another string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int xref:boost/urls/grammar/string_view_base/compare-0a.adoc[compare]( xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1, core::string_view str) const; ---- [.small]#xref:boost/urls/grammar/string_view_base/compare-0a.adoc[_» more..._]# Return the result of comparing to another string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int xref:boost/urls/grammar/string_view_base/compare-0b.adoc[compare]( xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1, char const* s) const; ---- [.small]#xref:boost/urls/grammar/string_view_base/compare-0b.adoc[_» more..._]# Return the result of comparing to another string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int xref:boost/urls/grammar/string_view_base/compare-0c.adoc[compare]( xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1, char const* s, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n2) const; ---- [.small]#xref:boost/urls/grammar/string_view_base/compare-0c.adoc[_» more..._]# Return the result of comparing to another string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int xref:boost/urls/grammar/string_view_base/compare-0e.adoc[compare]( xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1, core::string_view str, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos2, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n2) const; ---- [.small]#xref:boost/urls/grammar/string_view_base/compare-0e.adoc[_» more..._]# == Return Value The result of the comparison == Parameters [cols=2] |=== | Name | Description | *str* | The string to compare | *s* | The string to compare | *pos1* | The position to start comparing from | *n1* | The number of characters to compare | *n2* | The number of characters to compare | *pos2* | The position to start comparing from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#