BloombergLP::bdlb::StringViewUtil::startsWith

Return true if the specified string begins with the specified characters, and false otherwise.

Synopsis

Declared in <bdlb_stringviewutil.h>

static
bool
startsWith(
    std::string_view const& string,
    std::string_view const& characters);

Return Value

true if string begins with characters, and false otherwise

Parameters

NameDescription
stringstring view to test
charactersprefix to match