[#BloombergLP-bdlb-StringViewUtil-startsWith-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringViewUtil.adoc[StringViewUtil]::startsWith :relfileprefix: ../../../ :mrdocs: Return `true` if `string` begins with the C‐string `characters`. == Synopsis Declared in `<bdlb_stringviewutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool startsWith( std::string_view const& string, char const* characters); ---- == Description See the overload above for contract. == Return Value `true` if `string` begins with `characters`, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *string* | string view to test | *characters* | null‐terminated prefix to match |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#