god::output#

Note

Declared in <god/output.hpp>

namespace output#
namespace util#

Functions

std::string_view escapechar(char c) noexcept#

Sanitize an escape sequence character with the literal representation.

Parameters:

c – The character to sanitize

Returns:

The literal representation as a string

std::string escapestr(std::string_view s) noexcept#

Sanitize a string with escape sequences with the literal representation.

Parameters:

s – The string to sanitize

Returns:

The literal representation

namespace json#

Functions

std::string element(const god::value &v) noexcept#

Translate an element into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated element as a string

std::string string(const god::value &v) noexcept#

Translate a string into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated string as a string

std::string integer(const god::value &v) noexcept#

Translate an integer into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated integer as a string

std::string decimal(const god::value &v) noexcept#

Translate a decimal into json representation.

Parameters:

v – constant reference to a value

Returns:

The translated decimal as a string

std::string boolean(const god::value &v) noexcept#

Translate a boolean into json representation.

Parameters:

v – constant reference to a value

Returns:

The translated boolean as a string

std::string null(const god::value &v) noexcept#

Translate a null into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated null as a string

std::string list(const god::value &v) noexcept#

Translate a list into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated list as a string

std::string map(const god::value &v) noexcept#

Translate a map into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated map as a string

std::string field(const god::field &f) noexcept#

Translate a field into json representation.

Parameters:

f – Constant reference to a value

Returns:

The translated field as a string

std::string document(const god::document &doc) noexcept#

Translate a document into json representation.

Parameters:

doc – Constant reference to a value

Returns:

The translated document as a string

namespace canon#

Functions

std::string element(const god::value &v) noexcept#

translate an element into canonical representation

Parameters:

v – Constant reference to a value

Returns:

the translated element as a string

std::string string(const god::value &v) noexcept#

Translate a string into canonical representation.

Parameters:

v – Constant reference to a value

Returns:

the translated string as a string

std::string integer(const god::value &v) noexcept#

Translate an integer into canonical representation.

Parameters:

v – constant reference to a value

Returns:

the translated integer as a string

std::string decimal(const god::value &v) noexcept#

Translate a decimal into canonical representation.

Parameters:

v – constant reference to a value

Returns:

the translated decimal as a string

std::string boolean(const god::value &v) noexcept#

translate a boolean into canonical representation

Parameters:

v – constant reference to a value

Returns:

the translated boolean as a string

std::string null(const god::value &v) noexcept#

translate a null into canonical representation

Parameters:

v – Constant reference to a value

Returns:

The translated null as a string

std::string list(const god::list &v) noexcept#

Translate a list into canonical representation.

Parameters:

v – Constant reference to a value

Returns:

The translated list as a string

std::string map(const god::map &v) noexcept#

Translate a map into canonical representation.

Parameters:

v – Constant reference to a value

Returns:

The translated map as a string

std::string field(const god::field &f) noexcept#

Translate a field into canonical representation.

Parameters:

f – Constant reference to a value

Returns:

The translated field as a string

std::string document(const god::document &doc) noexcept#

Translate a document into canonical representation.

Parameters:

doc – Constant reference to a value

Returns:

The translated document as a string

namespace json

Functions

std::string element(const god::value &v) noexcept

Translate an element into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated element as a string

std::string string(const god::value &v) noexcept

Translate a string into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated string as a string

std::string integer(const god::value &v) noexcept

Translate an integer into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated integer as a string

std::string decimal(const god::value &v) noexcept

Translate a decimal into json representation.

Parameters:

v – constant reference to a value

Returns:

The translated decimal as a string

std::string boolean(const god::value &v) noexcept

Translate a boolean into json representation.

Parameters:

v – constant reference to a value

Returns:

The translated boolean as a string

std::string null(const god::value &v) noexcept

Translate a null into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated null as a string

std::string list(const god::value &v) noexcept

Translate a list into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated list as a string

std::string map(const god::value &v) noexcept

Translate a map into json representation.

Parameters:

v – Constant reference to a value

Returns:

The translated map as a string

std::string field(const god::field &f) noexcept

Translate a field into json representation.

Parameters:

f – Constant reference to a value

Returns:

The translated field as a string

std::string document(const god::document &doc) noexcept

Translate a document into json representation.

Parameters:

doc – Constant reference to a value

Returns:

The translated document as a string

namespace canon

Functions

std::string element(const god::value &v) noexcept

translate an element into canonical representation

Parameters:

v – Constant reference to a value

Returns:

the translated element as a string

std::string string(const god::value &v) noexcept

Translate a string into canonical representation.

Parameters:

v – Constant reference to a value

Returns:

the translated string as a string

std::string integer(const god::value &v) noexcept

Translate an integer into canonical representation.

Parameters:

v – constant reference to a value

Returns:

the translated integer as a string

std::string decimal(const god::value &v) noexcept

Translate a decimal into canonical representation.

Parameters:

v – constant reference to a value

Returns:

the translated decimal as a string

std::string boolean(const god::value &v) noexcept

translate a boolean into canonical representation

Parameters:

v – constant reference to a value

Returns:

the translated boolean as a string

std::string null(const god::value &v) noexcept

translate a null into canonical representation

Parameters:

v – Constant reference to a value

Returns:

The translated null as a string

std::string list(const god::list &v) noexcept

Translate a list into canonical representation.

Parameters:

v – Constant reference to a value

Returns:

The translated list as a string

std::string map(const god::map &v) noexcept

Translate a map into canonical representation.

Parameters:

v – Constant reference to a value

Returns:

The translated map as a string

std::string field(const god::field &f) noexcept

Translate a field into canonical representation.

Parameters:

f – Constant reference to a value

Returns:

The translated field as a string

std::string document(const god::document &doc) noexcept

Translate a document into canonical representation.

Parameters:

doc – Constant reference to a value

Returns:

The translated document as a string