Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 10/01/2012 01:47 PM, Michael Stahl wrote:
... which brings me to another point: in a hypothetical future when we
could efficiently create a UTF8String from a string literal in C++
without copying the darn thing, what should hypothetical operations to
mutate the string's buffer do?

If we continue with the current COW strategy, note that there is already code to take care of immutable rtl_uString instances, see SAL_STRING_IS_STATIC (sal/rtl/source/strimp.hxx).

If we would rather abandon COW, and instead always create copies in copy ctors, the point would be moot.

Stephan

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.