/** * Replaces a substring with a specified string, and returns the new string. * * @param int $startPos The position of the first character in the substring to be replaced. * @param int $length The length of the substring to be replaced. * @param string $with The replacement string. * * @return CUStringObject The resulting string. */ public function replaceSubstring($startPos, $length, $with) { return CUString::replaceSubstring($this, $startPos, $length, $with); }