About Strings

Olivier Hallot olivier.hallot at documentfoundation.org
Mon Mar 19 06:23:20 PDT 2012


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

Hi Lubos, all...

Em 19-03-2012 03:27, Lubos Lunak escreveu:
> First of all, what code would need such additions to OUStringBuffer? The two 
> classes are modeled after Java's strings, where the idea is that the normal 
> string is ... well, the normal string, and the buffer string is for creating 
> new strings. Therefore, in theory, you do not need querying functionality in 
> OUStringBuffer. In practice, as it happens, theory and practice are not quite 
> the same :). So, if justified, I don't think there'd be any practical reasons 
> against duplicating OUString methods in OUStringBuffer, they would be small 
> inline functions calling the same functionality anyway.

Actually I was looking into

starmath/source/mathtype.cxx, circa line 87

sal_Bool MathType::LookupChar(sal_Unicode nChar,String &rRet,sal_uInt8
nVersion, sal_uInt8 nTypeFace)

to decide if rRet should be  OUString or OUStringBuffer

What would be your choice, given that on other members in the same file,
some methods and operations apply to rRet?

Thanks
- -- 
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/

iQEcBAEBAgAGBQJPZzNIAAoJEJp3R7nH3vLxnfEH/3Qe26navJAzjoaGDxShKT+h
4dYCYiEJRrHURRstsL97pCGGDXHjVQ85CRInk2g5vQSzdr3uUwMOobKTU2Ua1mi/
rPBsM7p2xTYqO2drIAFPL2jqUBYP66PBAr65SMPAjZgx9uPyIpqDlRkh4jzrShtW
Z1kkh7edCXXFGi3KuHNYY6AZbwduW7uudpdzGCzskOr3EpnMpk4Wr9v1dR6JM5VN
Whv3Zee3FJ2Wjx7Cf2gnStnSk+mVXC5Rg2LYHWnRBC/mXn987pHbHWM5xE9mwqCQ
vH9gop0UOc5Uq2jQE7G8H149FHk81D7awjRw+WMJ/IuM6u7JYyGfeQilbl8NVGw=
=PYq8
-----END PGP SIGNATURE-----


More information about the LibreOffice mailing list