lib/Globby/Builder/Regex.php
protected function translateToken(array $token)
    {
        $identifier = is_string($token[0]) ? null : $token[0];
        $value = $token[2];

        $result = $this->translateTokenFromIdentifier($identifier, $value);

        if ($result === null) {
            throw new BuildException(sprintf('No available translation for "%s"', $value));
        }

        return $result;
    }
protected function translateToken(array $token)
    {
        $identifier = is_string($token[0]) ? null : $token[0];
        $value = $token[2];

        $result = $this->translateTokenFromIdentifier($identifier, $value);

        if ($result === null) {
            throw new BuildException(sprintf('No available translation for "%s"', $value));
        }

        return $result;
    }
protected function translateToken ( array $ token ) { $ identifier = is_string ( $ token [ 0 ] ) ? null : $ token [ 0 ] ; $ value = $ token [ 2 ] ; $ result = $ this -> translateTokenFromIdentifier ( $ identifier , $ value ) ; if ( $ result === null ) { throw new BuildException ( sprintf ( 'No available translation for "%s"' , $ value ) ) ; } return $ result ; }
Translates a token into an appropriate regular expression construct. Various map directly to the same values;
others require some massaging and escaping to make them valid within the constructed in the regular expression.

@param array $token
@return string
@throws BuildException
Translates a token into an appropriate regular expression construct . Various map directly to the same values ; others require some massaging and escaping to make them valid within the constructed in the regular expression .