-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
8
-
Foundation PM Prioritized, Foundation Sprint 69, Foundation Sprint 70, Foundation Sprint 71
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.
- relates to
-
QTBUG-45190 Add QTextStream::read|readAll|readLine(QString *) overloads to reuse QString's capacity
-
- Open
-
| For Gerrit Dashboard: QTBUG-103108 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 570386,16 | QIODevice: Add QIODevice::readLineInto() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 582735,9 | Use QIODevice::readLineInto() instead of readLine() in loops | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 590253,2 | QIODevice: Add QIODevice::skipLine() | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |