[#bsl-basic_string-01d-substr-00] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-01d.adoc[basic_string<char8_t>]::substr :relfileprefix: ../../ :mrdocs: Return a substring of this string as a const lvalue. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string<char8_t>] substr( xref:bsl/basic_string-01d/size_type.adoc[size_type] position = 0, xref:bsl/basic_string-01d/size_type.adoc[size_type] numChars = npos) const &; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#