[#boost-urls-grammar-string_view_base-substr] = 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]::substr :relfileprefix: ../../../../ :mrdocs: Return a view to part of the string == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/string_view_base.hpp#L335[boost/url/grammar/string_view_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr core::string_view substr( xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos = 0, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n = core::string_view::npos) const; ---- == Description See `core::string_view::substr` [.small]#Created with https://www.mrdocs.com[MrDocs]#