Repeat the string by the amount of the multiplier

@param int $multiplier The number of times to repeat the string

@return $this
500542
public function repeat(int $multiplier): Utility
    {
        $string = str_repeat($this->string, $multiplier);

        return new static($string, $this->encoding);
    }
967211
public function multiply(string $field, $value)
    {
        $this->update();
        $this->mongoDbUpdate['$mul'][$field] = $value;

        return $this;
    }
1131492
public function setMultiple(array $multiple)
    {
        $this->multiple = $multiple;

        if(count($this->multiple) > 0) {
            if(!in_array(0, $this->notFilterableFields)) {
                $this->notFilterableFields[] = 0;
            }
            if(!in_array(0, $this->notSortableFields)) {
                $this->notSortableFields[] = 0;
            }
        }

        return $this;
    }
473028
public function setUsage($usage)
    {
        if (is_int($usage)) {
            $this->validate($usage, $this->usages);
        } else {
            $this->validate($usage, array_keys($this->usages));
            $usage = $this->usages[$usage];
        }

        $this->usage = $usage;

        return $this;
    }
1342589
public function multiply($multiplicand) {
		$tones = $this->tones();
		$newtones = array();
		foreach ($tones as $tone) {
			$newtones[] = (($tone * $multiplicand) % 12);
		}
		$this->bits = \ianring\BitmaskUtils::tones2Bits($newtones);
	}
1285013
function only ($n)
  {
    $this->setIterator ($it = new LoopIterator ($this->getIterator ()));
    $it->limit ($n);
    return $this;
  }
1363196
public function shuffle()
        {
            $string = $this->get();
            $value = str_shuffle($string);
            $this->update($value);
            return $this;
        }
159143
public function repeat($multiplier)
    {
        if (!$this->isNumber($multiplier)) {
            throw new StringObjectException(StringObjectException::MSG_INVALID_ARG, [
                '$multiplier',
                'integer'
            ]);
        }
        $this->val(str_repeat($this->val(), $multiplier));

        return $this;
    }
532943
private function addMultiItem()
    {
        $args = func_get_args();
        $optionKey = array_shift($args);
        $this->items[] = sprintf("%s:%s", $optionKey, implode(',', $args));
        return $this;
    }
744497
public function repeat(Repeat $repeat = null)
    {
        if (is_null($repeat)) {
            return $this->repeat;
        }

        $this->repeat = $repeat;

        return $this;
    }
510055
public function setMultiplier($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->multiplier !== $v) {
            $this->multiplier = $v;
            $this->modifiedColumns[SkillTableMap::COL_MULTIPLIER] = true;
        }

        return $this;
    }
629618
public function repeat($times): self
    {
        if ($times === 0) {
            return new static();
        }

        return static::create(
            \array_fill(0, (int) $times, $this->getArray()),
            $this->iteratorClass,
            false
        );
    }
259215
public function setDelimiter(string $delimiter): self
	{
		$this->delimiter = $delimiter;
		$this->setOptions['delimiter'] = null;

		return $this;
	}
315477
public function setMultiple($multiple = true)
    {
        $this->multiple = $multiple;
        $name           = $this->get('name');
        $this->setAttribute('name', $name . '[]');
        return $this;
    }
940548
function repeat(input, n) {

    var times = ~~n;

    return (!isString(input) || !times) ? input : strRepeat(input, n);
}
1128996
public function multiply(Real $multiplier, RoundingMode $rounding_mode = null)
    {
        if (null === $rounding_mode) {
            $rounding_mode = RoundingMode::HALF_UP();
        }

        $amount        = $this->getAmount()->toNative() * $multiplier->toNative();
        $roundedAmount = new Integer(round($amount, 0, $rounding_mode->toNative()));
        $result        = new self($roundedAmount, $this->getCurrency());

        return $result;
    }
229283
def _repeat(self, count, func):
        
        if count != 1:
            with self._qpart:
                for _ in range(count):
                    func()
        else:
            func()