/** * Replaces a substring with a specified string, with both starting and ending positions specified, and returns the * new string. * * @param int $startPos The position of the first character in the substring to be replaced. * @param int $endPos The position of the character that *follows* the last character in the substring to be * replaced. * @param string $with The replacement string. * * @return CUStringObject The resulting string. */ public function replaceSubstringByRange($startPos, $endPos, $with) { return CUString::replaceSubstringByRange($this, $startPos, $endPos, $with); }