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



On Mon, 2012-03-19 at 15:05 +0100, Michael Stahl wrote:
hmm... what i'd really like from a string class is that it has no
operator[] at all (who needs that anyway), just an iterator interface
that returns characters as uint32_t

        I'm personally somewhat skeptical that, even at a uint32_t level,
dissecting strings outside of the ASCII range is that meaningful. A
non-programmatic ASCII string is a binary blob that requires
heavy-lifting to do almost any operation on it: measuring it, rendering
it, moving through it in any sensible way etc.

        Of course, perhaps I'm wrong - are there some nice examples of
operator[] being used for anything that is not ascii related outside of
that very heavy lifting code ? ;-)

        ATB,

                Michael.

-- 
michael.meeks@suse.com  <><, Pseudo Engineer, itinerant idiot


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.