get_text


Description:

public string get_text (int start_offset, int end_offset) throws Error

Gets a range of text from an Text object.

The number of bytes in the returned string may exceed either end_offset or start_offset, since UTF-8 is a variable-width encoding.

Parameters:

this

a pointer to the Text object to query.

start_offset

a int indicating the start of the desired text range.

end_offset

a int indicating the first character past the desired range.

Returns:

a text string containing characters from start_offset to end_offset-1, inclusive, encoded as UTF-8.