|
FE 0.9.0
Header-only C++ frontend library
|
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 | |
| Tab | operator+ (int indent) const noexcept |
| 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 | |
| Tab (const Tab &)=default | |
| Tab (std::string_view tab={"\t"}, int indent=0) | |
| static Tab | spaces () |
|
default |
References Tab().
Referenced by operator+(), operator++(), operator+=(), operator-(), operator--(), operator-=(), operator<<, spaces(), and Tab().
|
inline |
|
inlineconstexprnoexcept |
Definition at line 83 of file format.h.
Referenced by operator+(), operator+=(), operator-(), and operator-=().
|
inlinenodiscardnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenodiscardnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 84 of file format.h.
Referenced by operator<<, and Tab().
|
friend |