![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qqmldom_global.h"#include "qqmldomconstants_p.h"#include "qqmldomfunctionref_p.h"#include <QtCore/QString>#include <QtCore/QStringView>#include <QtCore/QDebug>#include <type_traits>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 &ss, 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 &sinksink, QStringView ss, 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 &ss, int indent) |
| sinks the requested amount of spaces | |
| QMLDOM_EXPORT void | QQmlJS::Dom::sinkNewline (const Sink &ss, int indent) |
| sinks a neline and indents by the given amount | |
| QMLDOM_EXPORT void | QQmlJS::Dom::dumpErrorLevel (const Sink &ss, ErrorLevel levellevel) |
| 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 levellevel) |
| writes the dumper to the QDebug object corrsponding to the given error level | |
| QMLDOM_EXPORT QDebug | QQmlJS::Dom::operator<< (QDebug d, const Dumper &dumper) |