Determines whether the Cord starts with the passed string data rhs.

Synopsis

Declared in <absl/strings/cord.h>

bool
StartsWith(std::string_view rhs) const;

Return Value

true if the Cord starts with rhs.

Parameters

Name

Description

rhs

The prefix string to test for.

Created with MrDocs