Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmldomstringdumper_p.h File Reference
#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(Sink)>
 

Functions

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