[wx-dev] Re: case insensitive find() in wxString
Stefan.Neis at t-online.de
Stefan.Neis at t-online.de
Wed Aug 2 08:54:23 PDT 2006
Hi,
> well, as ABX pointed out looking at string.h it seems that wxStringBase
> is the std::string replacement when std::string is not usable and that
> wxString (which derives from wxStringBase) implements all
> wxString-specific methods which are not part of std::string.
> So I think that the two layers are already there.
To me, it sounded less like having two layers, but rather having a class
like e.g. wxStringTokenizer in addition to the string class...
> However I still do not understand why should we want to switch from
> wxString to std::string in future.... as far as wxString and std::string
> are "compatible" (i.e. it's easy to convert in both senses in projects
> which need to use both) I don't see any advantage from such switch.
Even if conversion is easy, especially when passing individual strings as
arguments to a function, I can imagine it gets rather ugly if you want/need
to pass arrays or lists or something similar of the right kind of strings
to a function. Also, all this conversion back and forth is not exactly
pretty.
But I have to admit that I'm using wxString only, anyway, so from my POV it's
a purely academic exercise...
Regards,
Stefan
More information about the wx-dev
mailing list