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