[Interest] QFile::size() and QTextStream::pos()

Igor Mironchik igor.mironchik at gmail.com
Wed Oct 28 20:37:06 CET 2015


Hi,

Can I expect that values returned by QFile::size() and 
QTextStream::pos() are equal when stream at end?

Or pos() of text stream can be smaller then size of file because, for 
example, text stream uses 2 bytes for each character?

Do I understand right that QTextStream::skipWhiteSpace() skips '_' and 
'*' too?

"bool QChar::isSpace() const
Returns true if the character is a separator character (Separator_* 
categories or certain code points from Other_Control category); 
otherwise returns false."

Thank you.

-- 
Best Regards,
Igor Mironchik.




More information about the Interest mailing list