MatchIterator
struct MatchIteratorimport MatchIterator from Wax;An iterator over non-overlapping matches retaining the expression and input text. Empty matches
advance the next search by one code point. Check HasNext before calling MoveNext.
Members
constructorconstructor
public constructor (Regex re, string text, int32 startAt)Starts a match search at the supplied byte offset, following Regex.IsMatchAt boundary
rules.
HasNextmethod
public fn HasNext() : boolReports whether a pending match is available without consuming it.
MoveNextmethod
public fn MoveNext() : MatchReturns the pending match and searches for the next one. Call only while HasNext is true.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.