Return a view to part of the string

Synopsis

Declared in header </boost/url/grammar/string_view_base.hpp#L343[boost/url/grammar/string_view_base.hpp,window=blank_]>

constexpr
string_view
substr(
    size_type pos = 0,
    size_type n = core::string_view::npos) const;

Description

See core::string_view::substr

Return Value

  • string_view

Parameters

Name Type

pos

size_type

n

size_type