BloombergLP::bdlb::StringViewUtil::startsWith

Return true if string begins with the C-string characters.

Synopsis

Declared in <bdlb_stringviewutil.h>

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

NameDescription
stringstring view to test
charactersnull-terminated prefix to match