Return true if string ends with the C‐string characters.

Synopsis

Declared in <bdlb_stringviewutil.h>

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

Description

See the overload above for contract.

Return Value

true if string ends with characters, and false otherwise

Parameters

Name

Description

string

string view to test

characters

null‐terminated suffix to match

Created with MrDocs