[#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&lowbar;view&lowbar;base]::substr
:relfileprefix: ../../../../
:mrdocs:

Return a view to part of the string

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/string_view_base.hpp#L398[boost&sol;url&sol;grammar&sol;string&lowbar;view&lowbar;base&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
core::string&lowbar;view
substr(
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] pos = 0,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] n = core&colon;&colon;string&lowbar;view&colon;&colon;npos) const;
----

== Description

See `core&colon;&colon;string&lowbar;view&colon;&colon;substr`

== Return Value

A view to the substring

== Parameters

[cols=2]
|===
| Name
| Description
| *pos*
| The position to start from
| *n*
| The number of characters
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
