About Strings

Lubos Lunak l.lunak at suse.cz
Tue Mar 20 08:27:30 PDT 2012


On Tuesday 20 of March 2012, Caolán McNamara wrote:
> On Tue, 2012-03-20 at 15:20 +0100, Lubos Lunak wrote:
> >  Before I start experimenting with more stuff in OUString that might look
> > a bit like operator+= , what exactly is so irritating about operator= or
> > operator+= in OUString and why?
>
> It's just that if OUString was supposed to be immutable,

 That is the theory, but what does it matter in practice? The only result of 
this that I can see is that it leads to cumbersome 
string->stringbuffer->string back and forths, so I wonder what the actual 
benefit of it is supposed to be? The way I see it it would be much better to 
just go with the string class and improve it as necessary, the buffer should 
be either deprecated or left for cases where the modifications are extensive.

-- 
 Lubos Lunak
 l.lunak at suse.cz


More information about the LibreOffice mailing list