function _reduce(&$raw) {
            if (!isset($this->_regexes[$this->_mode->getCurrent()])) {
                return false;
            }
            if ($raw === "") {
                return true;
            }
            if ($action = $this->_regexes[$this->_mode->getCurrent()]->match($raw, $match)) {
                $count = strpos($raw, $match);
                $unparsed = substr($raw, 0, $count);
                $raw = substr($raw, $count + strlen($match));
                return array($unparsed, $match, $action);
            }
            return true;
        }
function _reduce(&$raw) {
            if (!isset($this->_regexes[$this->_mode->getCurrent()])) {
                return false;
            }
            if ($raw === "") {
                return true;
            }
            if ($action = $this->_regexes[$this->_mode->getCurrent()]->match($raw, $match)) {
                $count = strpos($raw, $match);
                $unparsed = substr($raw, 0, $count);
                $raw = substr($raw, $count + strlen($match));
                return array($unparsed, $match, $action);
            }
            return true;
        }
function _reduce ( & $ raw ) { if ( ! isset ( $ this -> _regexes [ $ this -> _mode -> getCurrent ( ) ] ) ) { return false ; } if ( $ raw === "" ) { return true ; } if ( $ action = $ this -> _regexes [ $ this -> _mode -> getCurrent ( ) ] -> match ( $ raw , $ match ) ) { $ count = strpos ( $ raw , $ match ) ; $ unparsed = substr ( $ raw , 0 , $ count ) ; $ raw = substr ( $ raw , $ count + strlen ( $ match ) ) ; return array ( $ unparsed , $ match , $ action ) ; } return true ; }
Tries to match a chunk of text and if successful
removes the recognised chunk and any leading
unparsed data. Empty strings will not be matched.
@param string $raw  The subject to parse. This is the
content that will be eaten.
@return bool|array  Three item list of unparsed
content followed by the
recognised token and finally the
action the parser is to take.
True if no match, false if there
is a parsing error.
@access private
Tries to match a chunk of text and if successful removes the recognised chunk and any leading unparsed data . Empty strings will not be matched .