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
injabridge.cpp File Reference

(d89324ffe39397f535bd6f64c26514887ed3a7ba)

#include "injabridge.h"
#include "textutils.h"
#include <QtCore/qlogging.h>
#include <cmath>
#include <functional>
#include <utility>
Include dependency graph for injabridge.cpp:

Go to the source code of this file.

Functions

void qdocFatalTemplateRenderError (const char *what)
static InjaBridge::RenderResult renderWithPolicy (const InjaBridge::RenderContext &context, const std::function< QString()> &render)
static std::string escapeHtml (const std::string &input)
static std::string renderLinkSpan (const std::string &text, const std::string &href, bool hasHref, bool isMarkdown)
static std::string renderSpanMarkdown (const nlohmann::json &s)
static std::string renderSignatureSpans (const nlohmann::json &spans, const QString &format)
static void registerCallbacks (inja::Environment &env, const QString &format)

Function Documentation

◆ escapeHtml()

std::string escapeHtml ( const std::string & input)
static

Definition at line 88 of file injabridge.cpp.

◆ qdocFatalTemplateRenderError()

void qdocFatalTemplateRenderError ( const char * what)

The error-reporting entry point for template library errors in a no-exceptions build. The header redefines INJA_THROW and JSON_THROW_USER, the error-reporting entry points of Inja and nlohmann::json, to this function before including the libraries, so a library error terminates the run with the diagnostic for the render in progress instead of a bare abort.

Definition at line 65 of file injabridge.cpp.

◆ registerCallbacks()

void registerCallbacks ( inja::Environment & env,
const QString & format )
static

Definition at line 238 of file injabridge.cpp.

◆ renderLinkSpan()

std::string renderLinkSpan ( const std::string & text,
const std::string & href,
bool hasHref,
bool isMarkdown )
static

Definition at line 122 of file injabridge.cpp.

◆ renderSignatureSpans()

std::string renderSignatureSpans ( const nlohmann::json & spans,
const QString & format )
static

Definition at line 154 of file injabridge.cpp.

◆ renderSpanMarkdown()

std::string renderSpanMarkdown ( const nlohmann::json & s)
static

Definition at line 138 of file injabridge.cpp.

◆ renderWithPolicy()

InjaBridge::RenderResult renderWithPolicy ( const InjaBridge::RenderContext & context,
const std::function< QString()> & render )
static

Definition at line 72 of file injabridge.cpp.