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

QDebug: add encoding information to quoted-string outout

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Core: Serialization
    • None

    Description

      For streaming of QAnyStringView to QDebug, we have decided to add encoding information to the quoted string: "..."_L1", u8"...", u"..." (U"...", once char32_t is supported).

      It would make sense to use these monikers for all quoted string QDebug output, with a new (no)quote()/(no)space()-like mechanism to enable/disable them in the output.

      Acceptance criteria:

      • stream output indicates string encoding when quote()'ed:
        • "..."_L1, u8"...", u"...", (U"...", once supported)
      • (no)/{space,quote}-like flag to control the feature
        • default off for normal strings, default on for QAnyStringView

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              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