On 06/15/2012 02:55 PM, Konstantin Tokarev wrote:
> 15.06.2012, 14:50, "Rui Maciel" <rui.mac...@gmail.com>:
>> Does anyone know what's the rationale for relying on Qt's custom QString
>> instead of simply using C++'s standard and omnipresent std::string?
> 1. Historical reasons - STL was not implemented on the same level in all 
> compilers
> in the past.
> 2. std::string does not hadle UTF16 strings, and std::wstring is non-standard
3. std::string's behavior (e.g. use of the copy-on-write technique) is
implementation-dependent while QString is the same everywhere.
4. QString has more features (formatting, regular expressions, cheap
substring extraction through QStringRef, etc.).

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to