|
FE 0.15.0
A C++23 toolkit for writing compiler/interpreter frontends.
|
Keeps track of indentation level during output. More...
#include <fe/format.h>
Public Member Functions | |
Getters | |
| constexpr int | indent () const noexcept |
| constexpr std::string_view | tab () const noexcept |
Creates a new Tab | |
| constexpr Tab | operator+ (int indent) const noexcept |
| constexpr Tab | operator- (int indent) const noexcept |
Modifies this Tab | |
| constexpr Tab & | operator++ () noexcept |
| constexpr Tab & | operator-- () noexcept |
| constexpr Tab & | operator+= (int indent) noexcept |
| constexpr Tab & | operator-= (int indent) noexcept |
Friends | |
| std::ostream & | operator<< (std::ostream &os, Tab tab) |
Construction | |
| constexpr | Tab (const Tab &)=default |
| constexpr | Tab (std::string_view tab={"\t"}, int indent=0) noexcept |
| static constexpr Tab | spaces () noexcept |
|
constexprdefault |
References Tab().
Referenced by operator+(), operator++(), operator+=(), operator-(), operator--(), operator-=(), operator<<, spaces(), and Tab().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 80 of file format.h.
Referenced by operator+(), operator+=(), operator-(), and operator-=().
|
inlinenodiscardconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 81 of file format.h.
Referenced by operator<<, and Tab().
|
friend |