Question about OUString::compareToAscii

Christophe JAILLET christophe.jaillet at wanadoo.fr
Fri Jul 13 14:24:04 PDT 2012


Le 13/07/2012 22:59, Christophe JAILLET a écrit :
> Hi,
>
> according to my understanding,
>
> OUString::compareToAscii(RTL_CONSTASCII_STRINGPARAM("A string")) gives 
> exactly the same result as
> OUString::compareToAscii("A string")
>
> However, the first one:
>     - is harder to read
>     - uses the deprecated RTL_CONSTASCII_STRINGPARAM macro
>     - is a bit slower
>
> If you agree with that, I will provide a patch to clean it.
>

Well it is not...

first form is more like a startsWith function.

Sorry for the noise.



More information about the LibreOffice mailing list