src/text/tokenizer/TextTokenizer.php
public function eq($str, $flags = 0)
    {
        $ret = false;

        if (list($str) = $this->match(preg_quote($str, "/"), $matches, $flags)
        ) {
            $ret = array($str);
        }

        return $ret;
    }
public function eq($str, $flags = 0)
    {
        $ret = false;

        if (list($str) = $this->match(preg_quote($str, "/"), $matches, $flags)
        ) {
            $ret = array($str);
        }

        return $ret;
    }
public function eq ( $ str , $ flags = 0 ) { $ ret = false ; if ( list ( $ str ) = $ this -> match ( preg_quote ( $ str , "/" ) , $ matches , $ flags ) ) { $ ret = array ( $ str ) ; } return $ ret ; }
Is the next token equal to a given string?

This function returns false if the next token is not equal to a given string
or an array with a single string.

@param string  $str   A string
@param integer $flags Flags (default is 0)

@return false|array of a single string
Is the next token equal to a given string?