Package: gtk

Function gtk-text-buffer-get-slice

Lambda List

gtk-text-buffer-get-slice (buffer start end &key include-hidden-chars)

Arguments

buffer -- a gtk-text-buffer object
start -- start of a range
end -- end of a range
include-hidden-chars -- whether to include invisible text

Return Value

An allocated UTF-8 string.

Details

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 nil. The returned string includes a 0xFFFC character whenever the buffer contains embedded images, so byte and character indexes into the returned string do correspond to byte and character indexes into the buffer. Contrast with the function gtk-text-buffer-get-text. Note that 0xFFFC can occur in normal text as well, so it is not a reliable indicator that a pixbuf or widget is in the buffer.
 

See also

2013-8-16