kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #11936
Re: The problems with wxString
> In my opinion if the class is specifically designed for
>> UTF8, we could drop the std::string iterator.
It is, but it is for strings, not UTF8 character manipulation. Its best use is at the
edge of the system in helping with serialization and de-serialization to disk, clipboard,
other byte oriented peripherals TBD. Futurer brain interfaces, etc. whatever needs 8 bit
data.
As I said before, if I wanted to rewrite wxString, I would have done it in one line of
code via:
typedef std::basic_string<uint32_t> MYSTRING;
One might even call it wxUString:
http://docs.wxwidgets.org/trunk/classwx_u_string.html
But my intent with class UTF8 was not to *replace* wxString. It was to overcome the 3
stated deficiencies, and only those, such that serialization to 8 bit strings was easier
to look at.
>
> Definitely not. There are few expected side effects to treating it like a std::string.
> If you find one, I'd rather you work in wxStrings.
Now that the 3 stated deficiencies of using wxString are gone, that makes my objections to
using wxString also gone. This was achieved by augmentation from the outside.
Dick
Follow ups
References
-
some unexpected errors while testing the CvPcb program
From: Edwin van den Oetelaar, 2013-11-19
-
Re: some unexpected errors while testing the CvPcb program
From: Wayne Stambaugh, 2013-11-20
-
Re: some unexpected errors while testing the CvPcb program
From: Dick Hollenbeck, 2013-11-20
-
Re: some unexpected errors while testing the CvPcb program
From: Wayne Stambaugh, 2013-11-21
-
Re: some unexpected errors while testing the CvPcb program
From: Dick Hollenbeck, 2013-11-21
-
Re: some unexpected errors while testing the CvPcb program
From: Wayne Stambaugh, 2013-11-21
-
Re: some unexpected errors while testing the CvPcb program
From: Dick Hollenbeck, 2013-11-21
-
Re: some unexpected errors while testing the CvPcb program
From: Dick Hollenbeck, 2013-11-21
-
The problems with wxString
From: Dick Hollenbeck, 2013-11-21
-
Re: The problems with wxString
From: Dick Hollenbeck, 2014-01-01
-
Re: The problems with wxString
From: Maciej Sumiński, 2014-01-02
-
Re: The problems with wxString
From: Dick Hollenbeck, 2014-01-02