lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
private static function findClosingQuote(
        $statement,
        &$tokenOffset,
        &$currentLiteralDelimiter
    ) {
        $token = self::findToken(
            $statement,
            $tokenOffset,
            '/' . preg_quote($currentLiteralDelimiter, '/') . '/'
        );

        if (! $token) {
            return false;
        }

        $currentLiteralDelimiter = false;
        ++$tokenOffset;

        return true;
    }
private static function findClosingQuote(
        $statement,
        &$tokenOffset,
        &$currentLiteralDelimiter
    ) {
        $token = self::findToken(
            $statement,
            $tokenOffset,
            '/' . preg_quote($currentLiteralDelimiter, '/') . '/'
        );

        if (! $token) {
            return false;
        }

        $currentLiteralDelimiter = false;
        ++$tokenOffset;

        return true;
    }
private static function findClosingQuote ( $ statement , & $ tokenOffset , & $ currentLiteralDelimiter ) { $ token = self :: findToken ( $ statement , $ tokenOffset , '/' . preg_quote ( $ currentLiteralDelimiter , '/' ) . '/' ) ; if ( ! $ token ) { return false ; } $ currentLiteralDelimiter = false ; ++ $ tokenOffset ; return true ; }
Finds closing quote

@param string $statement               The SQL statement to parse
@param string $tokenOffset             The offset to start searching from
@param string $currentLiteralDelimiter The delimiter of the current string literal

@return bool Whether the token was found
Finds closing quote