Robert Roessler:

> 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).

   To me, either of these is fine and the requested call is just a
minor convenience. I'd be more inclined to accept an "insert with
normalised new lines" call.

> 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.

   Is the speed really noticeable?

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to