[#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 `&lt;bdlb&lowbar;stringviewutil&period;h&gt;`

Return `true` if the specified `string` begins with the specified `character`, and `false` otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
xref:BloombergLP/bdlb/StringViewUtil/startsWith-0c.adoc[startsWith](
    std::string&lowbar;view const& string,
    char character);
----

[.small]#xref:BloombergLP/bdlb/StringViewUtil/startsWith-0c.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `string` begins with the specified `characters`, and `false` otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
xref:BloombergLP/bdlb/StringViewUtil/startsWith-09.adoc[startsWith](
    std::string&lowbar;view const& string,
    std::string&lowbar;view const& characters);
----

[.small]#xref:BloombergLP/bdlb/StringViewUtil/startsWith-09.adoc[_» more&period;&period;&period;_]#

Return `true` if `string` begins with the C&hyphen;string `characters`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
xref:BloombergLP/bdlb/StringViewUtil/startsWith-0d.adoc[startsWith](
    std::string&lowbar;view const& string,
    char const* characters);
----

[.small]#xref:BloombergLP/bdlb/StringViewUtil/startsWith-0d.adoc[_» more&period;&period;&period;_]#

== 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]#
