|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Classes | |
| struct | bold_view |
| struct | code_view |
| struct | column |
| class | details_guard |
| struct | image_view |
| struct | italic_view |
| struct | link_view |
| struct | strike_view |
| class | table_writer |
| class | writer |
Enumerations | |
| enum class | align : uint8_t { left , center , right } |
| enum class | admonition : uint8_t { note , tip , important , warning , caution } |
Functions | |
| void | write_metadata_table (writer &w, metadata_map map, span< char > scratch_buf, string_view title="Metadata Properties") noexcept |
| Streams any type-erased metadata_map view into a Markdown table. | |
| template<typename Callable > | |
| writer & | details (writer &w, microfmt::string_view summary, Callable &&body, bool open=false) noexcept |
| constexpr bold_view | bold (microfmt::string_view s) noexcept |
| constexpr italic_view | italic (microfmt::string_view s) noexcept |
| constexpr strike_view | strike (microfmt::string_view s) noexcept |
| constexpr code_view | code (microfmt::string_view s) noexcept |
| constexpr link_view | link (microfmt::string_view label, microfmt::string_view url) noexcept |
| constexpr image_view | image (microfmt::string_view alt, microfmt::string_view url) noexcept |
|
strong |
|
strong |
|
constexprnoexcept |
|
constexprnoexcept |
|
inlinenoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
inlinenoexcept |
Streams any type-erased metadata_map view into a Markdown table.
| w | Markdown writer instance. |
| map | Type-erased metadata_map view. |
| scratch_buf | Caller-provided character span used as scratch memory for formatting values. |
| title | Optional table header title. |