On Mon, Mar 19, 2012 at 16:05, Michael Stahl <mstahl@redhat.com> 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, and another interface to write the
string UTF-8 encoded into some buffer, thus allowing for picking
whatever internal implementation is most suitable.
Which is pretty much the java CharSequence interface :-)
,..which is the interface that the Sun engineers retrofitted into the
JDK when it became apparent that that was the optimal design in a
Unicode world.
Although we really also need AsciiString classes with index operators
for efficient dealing with network and file-level protocols.
Context
- Re: About Strings (continued)
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.