Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmldomstringdumper_p.h File Reference

(14785c28679923e82f9047331235b6181609bad1)

#include "qqmldom_global.h"
#include "qqmldomconstants_p.h"
#include "qqmldomfunctionref_p.h"
#include <QtCore/QString>
#include <QtCore/QStringView>
#include <QtCore/QDebug>
#include <type_traits>
Include dependency graph for qqmldomstringdumper_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QQmlJS::Dom::Dumper
 Helper class to accept eithe a string or a dumper (a function that writes to a sink) More...

Namespaces

namespace  QQmlJS
namespace  QQmlJS::Dom

Typedefs

using QQmlJS::Dom::Sink = function_ref<void(QStringView)>
 A Sink is a function that accepts a QStringView as input.
using QQmlJS::Dom::SinkF = std::function<void(QStringView)>
using QQmlJS::Dom::DumperFunction = std::function<void(const Sink &)>

Functions

template<typename T>
void QQmlJS::Dom::sinkInt (const Sink &s, T i)
QMLDOM_EXPORT QString QQmlJS::Dom::dumperToString (const Dumper &writer)
 Converts a dumper to a string.
QMLDOM_EXPORT void QQmlJS::Dom::sinkEscaped (const Sink &sink, QStringView s, EscapeOptions options)
 dumps a string as quoted string (escaping things like quotes or newlines)
void QQmlJS::Dom::devNull (QStringView)
QMLDOM_EXPORT void QQmlJS::Dom::sinkIndent (const Sink &s, int indent)
 sinks the requested amount of spaces
QMLDOM_EXPORT void QQmlJS::Dom::sinkNewline (const Sink &s, int indent)
 sinks a neline and indents by the given amount
QMLDOM_EXPORT void QQmlJS::Dom::dumpErrorLevel (const Sink &s, ErrorLevel level)
 Dumps a string describing the given error level (ErrorLevel::Error -> Error,...)
QMLDOM_EXPORT void QQmlJS::Dom::dumperToQDebug (const Dumper &dumper, QDebug debug)
QMLDOM_EXPORT void QQmlJS::Dom::dumperToQDebug (const Dumper &dumper, ErrorLevel level)
 writes the dumper to the QDebug object corrsponding to the given error level
QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< (QDebug d, const Dumper &dumper)