startsWith overloads
Synopses
Declared in <bdlb_stringviewutil.h>
Return true if the specified string begins with the specified character, and false otherwise.
static
bool
startsWith(
std::string_view const& string,
char character);
Return true if the specified string begins with the specified characters, and false otherwise.
static
bool
startsWith(
std::string_view const& string,
std::string_view const& characters);
Return true if string begins with the C‐string characters.
static
bool
startsWith(
std::string_view const& string,
char const* characters);
Return Value
-
trueifstringbegins withcharacter, andfalseotherwise -
trueifstringbegins withcharacters, andfalseotherwise
Parameters
Name |
Description |
string |
string view to test |
character |
leading character to match |
characters |
prefix to match |
Created with MrDocs