Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Thursday 30 of June 2011, Caolán McNamara wrote:
I've added a "remove" method to the O[U]StringBuffers to make it easy to
remove text from them without painful assembly of a new one by copying
segments out of an old one.

These StringBuffers were originally modelled after the Java equivalents.
Since the sal ones were written Java added "delete" methods to their
string buffers but delete is a reserved c++ keyword, so I called them
"remove" here.

It takes start position and end position in usual half-open [x,y) style,
not start position and length though this is clearly the same for an x
of 0

 Usual style in what way? O[U]StringBuffer don't have any other range 
function, but O[U]String uses start+len for such cases (copy, replaceAt), so 
this seems inconsistent.

-- 
 Lubos Lunak
 l.lunak@suse.cz

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.