TextBuffer.getText

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 not correspond to byte and character indexes into the buffer. Contrast with gtk_text_buffer_get_slice().

  1. string getText()
  2. string getText(TextIter start, TextIter end, bool includeHiddenChars)
    class TextBuffer

Parameters

start TextIter

start of a range

end TextIter

end of a range

includeHiddenChars bool

whether to include invisible text

Return: an allocated UTF-8 string

Meta