|
FE 0.14.0
A C++23 toolkit for writing compiler/interpreter frontends.
|
A borrowed fragment whose backticks stay markup; format_cite escapes every other argument. More...
#include <fe/term.h>
Public Member Functions | |
| constexpr | Cite () noexcept=default |
| The empty fragment - a context that says nothing. | |
| template<size_t N> | |
| constexpr | Cite (const char(&s)[N]) noexcept |
| constexpr | Cite (const Cited &cited) noexcept |
| constexpr | Cite (std::string_view s) noexcept |
| constexpr std::string_view | view () const noexcept |
| constexpr bool | empty () const noexcept |
| constexpr | operator bool () const noexcept |
| Is not empty? | |
A borrowed fragment whose backticks stay markup; format_cite escapes every other argument.
The `citation` convention lives in fe::term, next to the renderer that reads it.
A literal and a Cited convert implicitly - both are text someone wrote as markup. Runtime text has to say so: spell it Cite(s), so data never becomes markup by accident. A const char* - a ternary of two literals, say - counts as runtime text and needs Cite(s) too.
|
constexprdefaultnoexcept |
The empty fragment - a context that says nothing.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |