Line 13 in /home/naruskajar/domains/naruskajarvi.fi/public_html/www/vendor/silverstripe/framework/thirdparty/php-peg/Parser.php
4 * We cache the last regex result. This is a low-cost optimization, because we have to do an un-anchored match + check match position anyway 5 * (alternative is to do an anchored match on a string cut with substr, but that is very slow for long strings). We then don't need to recheck 6 * for any position between current position and eventual match position - result will be the same 7 * 8 * Of course, the next regex might be outside that bracket - after the bracket if other matches have progressed beyond the match position, or before 9 * the bracket if a failed match + restore has moved the current position backwards - so we have to check that too. 10 */ 11 class ParserRegexp { 12 function __construct( $parser, $rx ) { 13 $this->parser = $parser ; 14 $this->rx = $rx . 'Sx' ; 15 16 $this->matches = NULL ; 17 $this->match_pos = NULL ; // NULL is no-match-to-end-of-string, unless check_pos also == NULL, in which case means undefined 18 $this->check_pos = NULL ; 19 }