14.03.2017, 18:57, "Thiago Macieira" <thiago.macie...@intel.com>:
> On terça-feira, 14 de março de 2017 02:50:57 PDT Konstantin Tokarev wrote:
>>  > Should I just use QString all the way, or is it faster to use some other
>>  > classes when you know you don't need unicode?
>>  You should use QByteArray here, which is what QIODevice::readLine() returns.
>>  Avoid using QString as long as possible because that will trigger
>>  conversion of your text to UTF16 encoding, which may be totally useless in
>>  your use case.
>
> You can do that if you are doing binary comparisons.
>
> If you want to be flexible as to the encoding of your file, I'd use 
> QTextStream
> and compare to QString.

Good point, but original question was about ASCII.

>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

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

Reply via email to