[wx-dev] Improving wxString proposal (Re: #9672: wx 2.9 Ansi/Unicode Combi-wxString)
Stefan.Neis at t-online.de
Stefan.Neis at t-online.de
Tue Jul 8 08:27:29 PDT 2008
Hi,
> Having UTF-8 strings under Linux and wchar_t strings under Windows
> introduces the possibility that an app performs well on one platform
> and badly on the other in area as basic and ubiquitous as string
> processing. I'd be interested in the efficiency of wxRegEx in UTF-8
> mode, BTW.
BTW, how is this actually going to work? Personally, I would be quite
happy with using an ANSI Regex Library (because it's "obviouly" going
to be quite a bit faster with all strings being essentially half the
size),
since that is mostly going to work just fine. The only problem would be
that it's not going to recognize "non-ASCII"-characters as single
characters,
but for 99% of the cases, that's going to be irrelevant ...
For the remaining 1%: Is there a specific UTF-8 aware Regex library
(which
would also solve that problem and still have "mostly" ANSI performance)
or
would one have to convert stuff to wchar_t and use the wchar_t based
library?
And can I get UTF-8 strings on Windows as well? I assume that even with
the
conversion overhead, it's probably still going to be faster to use the
(almost-)
ANSI version of the library.
Regards,
Stefan
More information about the wx-dev
mailing list