On Sat, 2010-09-18 at 19:31 +0200, Bartosz wrote:
> Hi,
> 
> At TODO list there is topic about String and UniString removal:
> http://wiki.services.openoffice.org/wiki/To-Dos#General_Refactoring_Improvements
> 
> I found some declaration of the String, ByteString, UniString at:
> http://svn.services.openoffice.org/opengrok/xref/DEV300_m87/tools/inc/tools/string.hxx
> Also OString declaration at file:
> http://svn.services.openoffice.org/opengrok/xref/DEV300_m87/sal/inc/rtl/string.hxx
> and OUString at:
> http://svn.services.openoffice.org/opengrok/xref/DEV300_m87/sal/inc/rtl/ustring.hxx
> 
> What is the main differents between them and which one is obsolete?

There are basically four string classes

rtl::OString  the favoured class where each unit is 8bit
rtl::OUString the favoured class where each unit is 16bit
ByteString, deprecated 8bit strings
UniString (alias "String") deprecated 16bit strings

Generally should replace ByteString with rtl::OString and UniString with
rtl::OUString. But also see rtl::OUStringBuffer and rtl::OStringBuffer
when replacing UniString/ByteString as they're often necessary. 

C.

C.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to