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


On Tue, 2011-11-01 at 11:58 +0000, Michael Meeks wrote:
      Which makes me wonder whether we should be moving comphelper's
string.hxx methods into sal/ anyway - they look reasonably sensible
seemingly

case-by-case basis generally. e.g. methinks now that NaturalStringSorter
should go into i18nutil or there abouts, definitely not sal anyway. Some
of them are just bridges for the old string class, like the pad stuff
and getToken so they probably can stay out. matchL and search/replace
are possible contenders.

(though the rtl_uString_alloc stuff looks like it should be
done with a StringBuffer instead in each instance).

The foo_alloc stuff is moved in there from a somewhat confused-in-usage
family of overlapping stuff found in i18npool/i18nutil. StringBuffer's
ctor calls rtl_string_new_WithLength, comment on rtl_string_alloc
describes how it differ's from that, e.g. no memset on contents. Using a
StringBuffer puts you at something of an extra remove over the private
pData in order to tweak its length. Didn't really fancy fighting the
i18npool/i18nutil usages.

C.


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.