[Interest] Why QString and not std::string?
Thiago Macieira
thiago.macieira at intel.com
Fri Jun 15 19:50:57 CEST 2012
On sexta-feira, 15 de junho de 2012 12.19.27, Rui Maciel wrote:
> With C++11, UTF-16 strings are supported through the std::u16string
> type, which is a typedef for basic_string<char16_t>.
That's great. Except that the standards people often forget the most basic
things should be easy...
Here's one they forgot. Please fill in the blank:
#include <string>
int main(int argc, char **argv)
{
std::u16string s = __________ (argv[1]);
}
I'm looking for the equivalent of QString::fromLocal8Bit().
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120615/7c008990/attachment.sig>
More information about the Interest
mailing list