char * GetText (long start = -1, long end = -1, Bool flattened = FALSE, Bool forceCR = FALSE)
Returns the contents of the buffer in text form. See Flattened Text (section
) for
a discussion of flattened vs. non-flattened text.
If start is -1, then the entire buffer contents are returned. If start is not -1 but end is -1, then the contents are returned from start until the end of the buffer.
If forceCR is TRUE and flattened text is being obtained, then automatic carriage returns (from word-wrapping) are written into the return string as real carriage returns.