BloombergLP::bdlb::StringViewUtil::endsWith

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

Synopsis

Declared in <bdlb_stringviewutil.h>

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

Return Value

true if string ends with characters, and false otherwise

Parameters

NameDescription
stringstring view to test
characterssuffix to match