Set insert batch size and replace parameters.
@param  integer    $size
@param  array $replace
@return static
15037
public function setBatch($size, array $replace=[]) {
		$this->batch_size = $size;
		$this->batch_replace = $replace;
		return $this;
	}
581007
public function xs(int $size): Bootstrap4Column
    {
        if ($this->validateColumnSize($size) === true) {
            $this->xs_size = $size;
        }

        return $this;
    }
13352
public function setSize($size)
    {
        if (null === $size) {
            return $this;
        }

        $this->size = $size;
        $this->pixelRatio = (int) round($size / 5);

        return $this;
    }
1202527
public function insert($index, $child, $replace = FALSE)
	{
		if ($child instanceof self || is_scalar($child)) {
			if ($index === NULL) { // append
				$this->children[] = $child;

			} else { // insert or replace
				array_splice($this->children, (int)$index, $replace ? 1 : 0, [$child]);
			}

		} else {
			throw new InvalidArgumentException(sprintf('Child node must be scalar or Html object, %s given.', is_object($child) ? get_class($child) : gettype($child)));
		}

		return $this;
	}
1045921
protected function sortReplacements(array $replace)
    {
        return (new Collection($replace))->sortBy(function ($value, $key) {
            return mb_strlen($key) * -1;
        })->all();
    }
849810
public function replace( $find , $replace = null )
	{
		if ( is_array( $find ) )
			$this->buffer = strtr( $this->buffer , $find );
		else
			$this->buffer = str_replace( $find , $replace , $this->buffer );

		return $this;
	}
1345992
public function replace($search, $replace)
    {
        return $this->map(function ($str) use ($search, $replace) {
            return str_replace($search, $replace, $str);
        });
    }
777776
public function insert($template, array $replacements = [])
    {
        list ($resource, $params) = $this->getCurrent();

        return $this->render($template, array_merge($params, $replacements));
    }
746458
public function batchSize($batchSize)
    {
        if (null !== $batchSize) {
            if (!is_numeric($batchSize) || $batchSize != (int) $batchSize) {
                throw new \InvalidArgumentException('The batchSize is not valid.');
            }
            $batchSize = (int) $batchSize;
        }

        $this->batchSize = $batchSize;

        return $this;
    }
522764
public static function _toReadableSize($size, $decimals = '.') {
		$size = parent::toReadableSize($size);
		if ($decimals !== '.') {
			$size = str_replace('.', $decimals, $size);
		}
		return $size;
	}
16680
public function size($size = null)
    {
        if (!in_array($size, self::SIZES)) {
            Checkers::notice('Button size error, size [' . $size . '] unknown');
            $this->size = self::SIZE_NORMAL;
        } else {
            $this->size = $size;
        }
        return $this;
    }
55311
public function replaceFirst( string $search, string $replace ) : SplString
    {
        if( $search == '' ){
            return $this;
        }

        $position = strpos( $this->__toString(), $search );

        if( $position !== false ){
            return $this->setString( substr_replace( $this->__toString(), $replace, $position, strlen( $search ) ) );
        }

        return $this;
    }
897628
public function setSize($size)
    {
        if (!is_numeric($size) || $size < 1) {
            throw new \InvalidArgumentException(
                "An invalid identicon size was specified. ".
                "A numeric value >= 1 was expected. Specified value: $size.");
        }
        
        $this->size = (int)$size;
    }
85396
public function setSize($size) {
		$this->owner->ButtonSize = trim(strtolower($size));
		return $this->owner;
	}
114268
public function setSlice( $start, $size = 100 )
	{
		$this->_sliceStart = (int) $start;
		$this->_sliceSize = (int) $size;

		return $this;
	}
32183
public function size( $size ) {
		$this->width  = (int) $size;
		$this->height = (int) $size;

		return $this;
	}
606766
public function md(int $size): Bootstrap4Column
    {
        if ($this->validateColumnSize($size) === true) {
            $this->md_size = $size;
        }

        return $this;
    }