String literals, ASCII vs UTF-8

Olivier Hallot olivier.hallot at documentfoundation.org
Tue Mar 13 06:19:36 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Lubos

Em 05-03-2012 09:29, Lubos Lunak escreveu:
> On Tuesday 28 of February 2012, Lubos Lunak wrote:
>>  I'd like to revisit the choice of considering string literals to be either
>> ASCII or UTF-8, as discussed in the thread about removing
>> RTL_CONSTASCII_USTRINGPARAM. While I was ambivalent about it, I now think
>> we should go with ASCII only, unless explicitly marked otherwise.
> ...
>>  For these reasons I'd like to push the attached patches (changing OUString
>> docs to require ASCII in plain string literals, adding ASCII range checks,
>> adding OUString operator overloads for string literals and cleaning up
>> usage of the macro in sw's ww8 filter as a test).
> 
>  As the patch with exception throwing seems to be the only one with issues, 
> I've pushed the rest.
> 

Are we going to remove  RTL_CONSTASCII_USTRINGPARAM from all the code?
There a 33599(*) lines in whole code... Can it be automated?

Thanks
(*) git grep RTL_CONSTASCII_USTRINGPARAM | wc -l
- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPX0loAAoJEJp3R7nH3vLxPLkH/10A9mSTyz/PAyZkz/BFHvBO
4ucwvVOar5rKu6mhZlU3reVcgaWGmeU/se/gUsh+ZoL/q5fvdVUOLP7QYCQPV0qj
IEW4i/2oq5FVpX5KUQTHHB/OXwYD/B6g0xa8g/aGGH/DzQFeak8DGJ9FlZck2b/M
regejFfYFwOi7UAxShPjYCk+LIjZmWft0i3Rm8jLtwFXWkzwz999Wq7jQCdSjHzN
sLgFC6Viy15wLnzO0p4Lz5v1GE9ndne0Hs7a4YO740FAi/hhSbtWAJJ0rIIy+BZE
m2QKG+6JhC54gd5VFmSN/oxAbSvt/7rfz5s1acnIFDtTELOj6KfCq4uBrTtqFmE=
=hgN1
-----END PGP SIGNATURE-----


More information about the LibreOffice mailing list