BloombergLP::bdlb::StringViewUtil::startsWith

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

Synopsis

Declared in <bdlb_stringviewutil.h>

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

Return Value

true if string begins with character, and false otherwise

Parameters

NameDescription
stringstring view to test
characterleading character to match