Il 08/07/19 07:54, Иван Комиссаров ha scritto:
Is it possible to do an inplace toUpper() for the ASCII encoding?
At some past QtCS it was deemed that we should add foo() functions to complement any toFoo() -- the former would act in-place, the latter would return a new value.
But I don't think any of that has happened yet, so your best shot is hoping that foo() is overloaded for rvalue *this. toUpper() is, hence the in-place modifying version is the
ba = std::move(ba).toUpper();
which IMNSHO is quite *bad* to read. My 2 c, -- Giuseppe D'Angelo | [email protected] | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
