Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: IEnumerable<TResult> matches<TResult>(T[], int, Func<int, TMatch, TResult>, bool)

  • Declared in: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>

Declaration

protected IEnumerable<TResult> matches<TResult>(
    T[] input,
    int startAt,
    Func<int, TMatch, TResult> selector,
    bool backward
)

Summary

Returns a sequence of non-overlapping regular expression matches, optionally starting the search at the specified index.

Generic type parameters

TResult Type of the result object associated with each match of the regular expression.

Parameters

T[]input Input sequence to match the regular expression against.
intstartAt Index at which to start the search. Depending on backward, the matching behaviour is like that of GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.Matches(T[], int) or GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.MatchesReverse(T[], int?).
Func<int, TMatch, TResult>selector A delegate that processes each match into a result object.
boolbackwardtrue to perform a reverse match (starting from the end of the array and going backwards); false to match forward.

Returns

The set of result objects generated by selector for each match.