Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
None
-
8
-
Foundation Sprint 69, Foundation Sprint 70, Foundation Sprint 71, Foundation Sprint 110, Foundation Sprint 111
Description
Let's finally find out whether this can be implemented without (public) virtual functions or not (in which case it has to wait for 7.0).
QTextStream has QString readLine() as well as readLineInto(QString*, qint64 max), QIODevice only has QByteArray readLine() and lacks readLineInto(QByteArray*, qint64 max).
The idea behind the -Into-functions is to preserve capacity in the string/byte-array from one line to the next, a la std::getline, unlike readLine(), which allocates a new buffer for each line.
Attachments
Issue Links
- is required for
-
QTBUG-103108 QIODevice is missing QTextStream-line readLineInto()
- In Review
- relates to
-
QTBUG-45190 Add QTextStream::read|readAll|readLine(QString *) overloads to reuse QString's capacity
- Open
For Gerrit Dashboard: QTBUG-113547 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
570386,13 | QIODevice: Add QIODevice::readLineInto() | dev | qt/qtbase | Status: NEW | 0 | 0 |