Set begin and end delimiters which will be used to detect parts to be replaced

@param $begin string
@param $end string
@return $this
358755
public function setDelimiters($begin, $end)
    {
        $this->beginDelimiter = $begin;

        $this->endDelimiter = $end;

        // for chaining
        return $this;
    }
479110
public function orWhereBetween($field, $start, $end)
    {
        $this->prepareWhereBetween($field, $start, $end, 'orBetween');

        return $this;
    }
1151173
public static function endsWith($value, $end)
    {
        if (is_array($value)) {
            return self::last($value) == $end;
        }

        $end = "$end";

        return substr($value, -strlen($end)) === $end;
    }
776750
protected function _setTokenEnd($delimiter)
    {
        if (!is_null($delimiter)) {
            $delimiter = $this->_normalizeTokenDelimiter($delimiter);
        }

        $this->tokenEnd = $delimiter;
    }
964419
public function slice($start=0, $end=-1) {
        if ( $end == -1 ) return substr($this->internal, $start);
        $len = $end - $start - 1;
        return substr($this->internal, $start, $len);
    }
1215367
public static function abjad($start=0,$end=0){
		$abjadList = [];		
		for($i=65;$i<=90;$i++){
			$abjadList[]=chr($i);
			if($i==90){
				for($j=65;$j<=90;$j++){
					for($k=65;$k<=90;$k++){
						$abjadList[]=chr($j).chr($k);
					}
				}
			}
		}
		
		$abjad = [];
		if($end<$start) $end=$start;
		for($x=$start;$x<=$end;$x++){
			if($x>=702) break;
			$abjad[$x] = $abjadList[$x];
		}
		return $abjad;
	}
737581
public static function obfuscate($string, $start = 0, $end = 3, $replacement = '*'): string
    {
        $len = \strlen($string);

        if ($start < 0) {
            $start += $len;
        }
        $start = min($start, $len - 1);

        if ($end < 0) {
            $end += $len;
        }
        $end = min($end, $len - 1);

        if (0 === $len || $len === $start + 1 || $len === $end + 1 || $len <= $start + $end) {
            return $string;
        }

        return substr($string, 0, $start).str_repeat($replacement, $len - $end - $start).substr($string, $len - $end, $end);
    }
39676
public function during($starting,$ending)
    {
        if(! is_numeric($starting) || ! is_numeric($ending))
            throw new \Edujugon\GoogleAds\Exceptions\Report('During clause only accepts the following date format: "Ymd" => e.g. 20170112');

        $this->during = [$starting,$ending];

        return $this;
    }
94882
public function whereBetween($field, $start, $end)
    {
        $this->prepareWhereBetween($field, $start, $end, 'between');

        return $this;
    }
594632
private function str_slice($str, $start = 0, $end = false)
    {
        if ($end !== FALSE && ($start < 0 || $end <= 0)) {
            $max = strlen($str);

            if ($start < 0) {
                if (($start = $max + $start) < 0) {
                    return '';
                }
            }

            if ($end < 0) {
                if (($end = $max + $end) < 0) {
                    return '';
                }
            }

            if ($end <= $start) {
                return '';
            }
        }

        $slice = ($end === FALSE) ? substr($str, $start) : substr($str, $start, $end - $start);

        return ($slice === FALSE) ? '' : $slice;
    }
472473
public static function changeStatus($start, $end)
	{
		if ( empty($start) || ! is_string($start)) {
			throw new WorkflowException('$start must be a string');
		}

		if ( empty($end) || ! is_string($end)) {
			throw new WorkflowException('$end must be a string');
		}

		return 'from {'.$start.'} to {'.$end.'}';
	}
1145008
public function delete($start, $end)
	{
		$start = (int) $start;
		$end   = (int) $end;

		if ($start < 0 || $start >= $this->length() || $end < 0 || $end >= $this->length()) {
			throw new OutOfBoundsException();
		}

		$this->string = mb_substr(
				$this->string,
				0,
				$start,
				$this->encoding
			) .
			mb_substr(
				$this->string,
				$end + 1,
				$this->length(),
				$this->encoding
			);
		return $this;
	}
1036860
public function notBetween($field, $start, $end) {
        $this->add($field, Expr::NOT_BETWEEN, [$start, $end]);

        return $this;
    }
458199
public function orWhereBetween(string $fieldName, $begin, $end)
    {
        return $this->where($fieldName, 'between', [$begin, $end], LogicalOperator::OR);
    }
931503
public static function find_rules($text, $begin, $end)
	{
		$rules = array();

		$temp = $text;
		$pieces = explode($begin, $temp);
		while(count($pieces) > 1){
			$pieces = explode($end, $pieces[1]);

			$rule = $begin . $pieces[0] . $end;
			array_push($rules, $rule);

			if( count($pieces) == 1 )
				break;

			$temp = str_replace($rule, '', $temp);
			$pieces = explode($begin, $temp);
		}

		return $rules;
	}
316945
public function setPageRange($start, $end){
        $this->page_start = $start;
        $this->page_end = $end;
        return $this;
    }
105591
public StrBuilder del(int start, int end) {
		if (start < 0) {
			start = 0;
		}
		if (end > this.position) {
			end = this.position;
		}
		if (start > end) {
			throw new StringIndexOutOfBoundsException("Start is greater than End.");
		}
		if (end == this.position) {
			this.position = start;
		}

		int len = end - start;
		if (len > 0) {
			System.arraycopy(value, start + len, value, start, this.position - end);
			this.position -= len;
		}
		return this;
	}