private function getDelimiterRightPosition($string, $offset = 0, $delimiter = ';', $skipInBrackets = false)
    {
        $pos = $this->getDelimiterPos($string, $offset, $delimiter, $skipInBrackets);
        if ($pos === false) {
            return false;
        }

        do {
            $newPos = $this->getDelimiterPos($string, $pos + 1, $delimiter, $skipInBrackets);
            if ($newPos !== false) {
                $pos = $newPos;
            }
        } while ($newPos !== false);

        return $pos;
    }