/** * Returns a substring from a string, with both starting and ending positions specified. * * As a special case, the method returns an empty string if the starting and ending positions are the same, with * the greatest such position being the string's length. * * @param int $startPos The position of the substring's first character. * @param int $endPos The position of the character that *follows* the last character in the substring. * * @return CUStringObject The substring. */ public function substring($startPos, $endPos) { return CUString::substring($this, $startPos, $endPos); }