Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmldomstringdumper_p.h File Reference

(66af11c6cba24233aa0fad49bb2de965e3285ba1)

#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
 A Sink is a function that accepts a QStringView as input. More...
 

Namespaces

namespace  QQmlJS
 
namespace  QQmlJS::Dom
 

Typedefs

using QQmlJS::Dom::Sink = function_ref<void(QStringView)>
 
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)
 
QString QQmlJS::Dom::dumperToString (const Dumper &writer)
 Converts a dumper to a string.
 
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)
 
void QQmlJS::Dom::sinkIndent (const Sink &s, int indent)
 sinks the requested amount of spaces
 
void QQmlJS::Dom::sinkNewline (const Sink &s, int indent)
 sinks a neline and indents by the given amount
 
void QQmlJS::Dom::dumpErrorLevel (const Sink &s, ErrorLevel level)
 Dumps a string describing the given error level (ErrorLevel::Error -> Error,...)
 
void QQmlJS::Dom::dumperToQDebug (const Dumper &dumper, QDebug debug)
 
void QQmlJS::Dom::dumperToQDebug (const Dumper &dumper, ErrorLevel level)
 writes the dumper to the QDebug object corrsponding to the given error level
 
QDebug QQmlJS::Dom::operator<< (QDebug d, const Dumper &dumper)