All matched characters.
MatchException if didn't match anything
1 auto stream = parsingStream("This is a sentence"); 2 ParsingStream.Checker check = a => a.isAlpha; 3 4 5 assert(stream.enforceMatch(check) == "This"); 6 7 // Will fail, there is some whitespace before — remember to skip()! 8 assertThrown(stream.enforceMatch(check)); 9 10 assert(stream.skip.enforceMatch(check) == "is"); 11
Match all next characters against the function until it returns false.