HomeManualTopicsTypesSymbols

std::match

match the grammar object with the start of the specified string

Parameters

object
the grammar object
string
the string to match

Result

n
the number of matched characters

Description

If the match is unsuccessful, then n is std::undefined.

Topics

Grammar Objects

Strings

See also

std::match_back match the grammar object with the end of the specified string
std::search search from the grammar object from the start or end of the specified string

Implemented by

std_types::character matches the start of a string with the character
std_types::set matches the start of a string with the set's characters
std_types::string matches the start of the stream with the string