FE 0.14.0
A C++23 toolkit for writing compiler/interpreter frontends.
Loading...
Searching...
No Matches
fe::Cited Class Reference

An owning message fragment that spells `citations` of its own; what format_cite yields. More...

#include <fe/term.h>

Public Member Functions

 Cited (std::string str) noexcept
constexpr std::string_view view () const noexcept
constexpr operator std::string_view () const noexcept

Detailed Description

An owning message fragment that spells `citations` of its own; what format_cite yields.

<

Return this from a helper that assembles a fragment, and it stays valid wherever a Cite may go.

A std::format_string whose backticks delimit a `citation` while those of its arguments are data.

Definition at line 182 of file term.h.

Constructor & Destructor Documentation

◆ Cited()

fe::term::Cited::Cited ( std::string str)
inlineexplicitnoexcept

Definition at line 184 of file term.h.

Referenced by fe::term::format_cite().

Member Function Documentation

◆ operator std::string_view()

fe::term::Cited::operator std::string_view ( ) const
inlineconstexprnoexcept

Definition at line 188 of file term.h.

◆ view()

std::string_view fe::term::Cited::view ( ) const
inlinenodiscardconstexprnoexcept

Definition at line 187 of file term.h.


The documentation for this class was generated from the following file: