Re: fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-16 Thread Lubos Lunak
On Tuesday 15 of January 2013, Norbert Thiebaud wrote: > On Tue, Jan 15, 2013 at 12:26 PM, Eike Rathke wrote: > > For example, a > > > > if (String.Search(...) == STRING_NOTFOUND) > > > > replaced with > > > > if (OUString.indexOf(...) == STRING_NOTFOUND) > > > > will not work. > > A even

Re: fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-16 Thread Caolán McNamara
On Wed, 2013-01-16 at 13:34 +0100, Jean-Noël Rouvignac wrote: > Thanks for all your relevant answers and wiki updates. > I understand the goal is to replace String and its variants by > OUString. > > My last remaining question is "what is the use of OString? Where/when > is it used in the applicat

Re: fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-16 Thread Jean-Noël Rouvignac
Thanks for all your relevant answers and wiki updates. I understand the goal is to replace String and its variants by OUString. My last remaining question is "what is the use of OString? Where/when is it used in the application?" Thanks, Jean-Noël 2013/1/15 Norbert Thiebaud > On Tue, Jan 15,

Re: fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-15 Thread Norbert Thiebaud
On Tue, Jan 15, 2013 at 12:26 PM, Eike Rathke wrote: > > For example, a > > if (String.Search(...) == STRING_NOTFOUND) > > replaced with > > if (OUString.indexOf(...) == STRING_NOTFOUND) > > will not work. A even more tricky case is this: String's functions usually deal silently with out

Re: fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-15 Thread Eike Rathke
Hi, On Tuesday, 2013-01-15 14:16:42 +0100, Michael Stahl wrote: > > * What about the associated type xub_StrLen ? > > good question... there is code that loops over the sal_Unicode UTF-16 > code units in the string (Note: those are not "characters"). since > String has a maximum capacity of 2

Re: fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-15 Thread Michael Stahl
On 15/01/13 13:58, Jean-Noël Rouvignac wrote: > * What are the guidelines to replace String? When to use OString and > when to use OUString? in almost all cases, convert to OUString. there also used to be a ByteString that corresponded to OString but that has already been removed. > * W

Re: fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-15 Thread Miklos Vajna
Hi Jean-Noël, On Tue, Jan 15, 2013 at 01:58:12PM +0100, Jean-Noël Rouvignac wrote: >- What are the guidelines to replace String? When to use OString and >when to use OUString? UniString and String are the same, both should be ported to OUString. >- What is XubString? >https://w

fdo#38838 - Removal/Replacement of the String/UniString with OUString once and for all.

2013-01-15 Thread Jean-Noël Rouvignac
Hello, I have some questions about String/UniString removal. So far, I have replaced UniString with using OUString in a few places. The questions are: - What are the guidelines to replace String? When to use OString and when to use OUString? - What is XubString? https://wiki.documen