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

Support batching in QUtf8StringIterator

    XMLWordPrintable

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

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

          Activity

            People

              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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes