Returns whether a given ASCII string text starts with prefix, ignoring case in the comparison.

Synopsis

Declared in <absl/strings/match.h>

bool
StartsWithIgnoreCase(
    std::string_view text,
    std::string_view prefix) noexcept;

Return Value

true if text starts with prefix ignoring case, false otherwise.

Parameters

Name

Description

text

The string to test.

prefix

The prefix to look for.

Created with MrDocs