substring

Extracts a substring from the given text based on the start and end positions of the DocumentRange.

Return

A substring of the text starting from the resolved offset of the start position and ending at the resolved offset of the end position.

Parameters

text

The source text from which the substring will be extracted. This is a sequence of characters to operate on.