Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-119744

Support batching in QUtf8StringIterator

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • None

      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");
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes