HomeManualTopicsTypesSymbols

std_types::string/std::match

matches the start of the stream with the string

Parameters

self
the string to match
stream
the stream to match against

Results

None

Description

Attempts to match the start of the stream with the specified string. If the match is successful the stream the length of the string is returned. Otherwise std::undefined is returned.

Topic

Strings

Implements

std::match match the grammar object with the start of the specified string

See also

std_types::string/std::search searches for the start of the string within the stream