I know how unpopular the subject of new API calls can be, but does
anyone else see the usefulness of a put/append/insert line call?
The idea is to hand over a string and have Scintilla add it to the
buffer at the current position (say), but with the appropriate eol
char(s) for the current eol mode? Note that we are not talking about
examining and possibly changing any existing eol sequence on the line,
but just adding to a [presumably] eol-less string.
This comes up for me because I need to look at each line as I am
loading a file, and the way they are handed to me is with any eol
stuff already stripped... I can then either do an add_text of the the
string followed by a second add_text with just the eol, OR I can
concatenate the eol on to the line and do an add_text with the new
dynamically allocated string (yuck).
BTW, I actually am doing the second one currently, as the extra alloc
and string concatenation appears to be faster than doing the two
Scintilla calls.
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest