protected function findVariable(int $i, bool $escape): int
    {
        $close = ($escape === true ? '}}}' : '}}');

        for (; mb_substr($this->source, $i, mb_strlen($close)) !== $close; $i++) {
        }

        return $i + mb_strlen($close);
    }