Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
-
4
-
Foundation Sprint 120, Foundation Sprint 121, Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124, Foundation Sprint 125, Foundation Sprint 126, Foundation Sprint 127, Foundation Sprint 128, Foundation Sprint 129
Description
This is a corollary report to QTBUG-45166. QTextStream would be safer (compared to overloads with char* as output parameter) and faster (compared to overloads returning QString) if the following overloads were present to reuse QString's capacity:
bool QTextStream::readInto(QString *s, qint64 maxLen); bool QTextStream::readAllInto(QString *s);
The above overload signatures model along the already existing
bool QTextStream::readLineInto(QString *s, qint64 maxLen); // already exists
Attachments
Issue Links
- relates to
-
QTBUG-57345 Reading a line over 128mb with QTextReader from a file crashes with bad alloc with 32bit application
-
- Reported
-
-
QTBUG-70484 QIODevice read, readLine, readAll could report errors through optional bool* or lambda
-
- Open
-
-
QTBUG-103108 QIODevice is missing QTextStream-line readLineInto()
-
- Closed
-
-
QTBUG-113547 [spike] Find out whether QIODevice::readLineInto() is possible to implement without (public) virtual methods
-
- Closed
-
-
QTBUG-126574 QIODevice::readLineInto() should have a QSpan overload
-
- Closed
-
-
QTBUG-106198 QString: add missing STL-style assign()
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-45190 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
609797,9 | [QTextStream] Add readInto() and readAllInto() methods | dev | qt/qtbase | Status: NEW | +1 | 0 |