Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
Now that QTBUG-119774 has implemented a UTF-8 iterator, it would be nice to have it's next() function(s) take an optional State object in which to store partially-read data, supporting chaining:
State state = {}; while (auto data = co_await getMoreData()) { Iterator it(*data); while (it.hasNext()) { auto ch = it.next(state); if (ch == Invalid) if (state.hasData()) continue; else error("Premature end");
Attachments
Issue Links
- clones
-
QTBUG-119713 Qt needs a QUtf8StringIterator
- Open