On Wednesday 22 of February 2012, Michael Meeks wrote:
Of course, it would be even more wonderful, if, with some
template-magic, we could generate static rtl_uString structures that
would end up in the .rodata section, and got heap allocated only when
copied, with utf-8 -> UCS2 conversion on during a (reasonable time)
compile ;-) but that's a pipe-dream I suspect.
That appears not to be doable without macros, as string literal contents are
not compile-time constants because whatever reason, so it appears there's no
way they can make it into .rodata.
It is doable with a macro [*], but then we're back at the beginning of this
RTL_CONSTASCII_USTRINGPARAM discussion.
[*] http://www.macieira.org/blog/2011/07/qstring-improved/
--
Lubos Lunak
l.lunak@suse.cz
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.