god::pretty#
Note
Declared in <god/pretty.hpp>
-
namespace pretty#
Functions
-
std::string document(const document &doc) noexcept#
Prettify a document tree.
- Parameters:
doc – Constant reference to a document
- Returns:
A string useful for display
-
std::string list(const list &lst, std::size_t depth) noexcept#
Prettify a god::list.
- Parameters:
lst – Constant reference to a god::list
depth – The current indentation depth
- Returns:
A string useful for display
-
std::string map(const map &mp, std::size_t depth) noexcept#
Prettify a god::map.
- Parameters:
mp – Constant reference to a god::map
depth – The current indentation depth
- Returns:
A string useful for display
-
std::string field(const field &fld, std::size_t depth) noexcept#
Prettify a god::field.
- Parameters:
fld – Constant reference to a god::field
depth – The current indentation depth
- Returns:
A string useful for display
-
std::string document(const document &doc) noexcept#