Gtk.TextBuffer.prototype.get_text
function get_text(start:Gtk.TextIter, end:Gtk.TextIter, include_hidden_chars:Boolean):String { // Gjs wrapper for gtk_text_buffer_get_text() }
Returns the text in the range [start,end). Excludes undisplayed text (text marked with tags that set the invisibility attribute) if include_hidden_chars is false. Does not include characters representing embedded images, so byte and character indexes into the returned string do <emphasis>not</emphasis> correspond to byte and character indexes into the buffer. Contrast with Gtk.TextBuffer.prototype.get_slice.
- start
start of a range
- end
end of a range
- include_hidden_chars
whether to include invisible text
- Returns
an allocated UTF-8 string