src/Parser/Util/ParseUtil.php
private static function parsestring2(string $stmt, int $offset)
    {
        $sb = '';
        $stmtLen = strlen($stmt);
        for (++$offset; $offset < $stmtLen; ++$offset) {
            $c = $stmt = [$offset];
            if ('\\' == $c) {
                switch ($c = $stmt[++$offset]) {
                    case '0':
                        $sb .= "\0";
                        break;
                    case 'b':
                        $sb .= "\b";
                        break;
                    case 'n':
                        $sb .= "\n";
                        break;
                    case 'r':
                        $sb .= "\r";
                        break;
                    case 't':
                        $sb .= "\t";
                        break;
                    case 'Z':
                        $sb .= chr(26);
                        break;
                    default:
                        $sb .= $c;
                }
            } elseif ('"' == $c) {
                if ($offset + 1 < strlen($stmt) && '"' == $stmt[$offset + 1]) {
                    ++$offset;
                    $sb .= '"';
                } else {
                    break;
                }
            } else {
                $sb .= $c;
            }
        }

        return $sb;
    }
private static function parsestring2(string $stmt, int $offset)
    {
        $sb = '';
        $stmtLen = strlen($stmt);
        for (++$offset; $offset < $stmtLen; ++$offset) {
            $c = $stmt = [$offset];
            if ('\\' == $c) {
                switch ($c = $stmt[++$offset]) {
                    case '0':
                        $sb .= "\0";
                        break;
                    case 'b':
                        $sb .= "\b";
                        break;
                    case 'n':
                        $sb .= "\n";
                        break;
                    case 'r':
                        $sb .= "\r";
                        break;
                    case 't':
                        $sb .= "\t";
                        break;
                    case 'Z':
                        $sb .= chr(26);
                        break;
                    default:
                        $sb .= $c;
                }
            } elseif ('"' == $c) {
                if ($offset + 1 < strlen($stmt) && '"' == $stmt[$offset + 1]) {
                    ++$offset;
                    $sb .= '"';
                } else {
                    break;
                }
            } else {
                $sb .= $c;
            }
        }

        return $sb;
    }
<code>"abc"</code>.

@param string $stmt
@param int offset stmt.charAt(offset) == first <code>"</code>

@return string