12#ifndef SST_CORE_UTIL_SMARTTEXTFORMATTER_H
13#define SST_CORE_UTIL_SMARTTEXTFORMATTER_H
35 std::vector<int> tab_stops_;
61 int current_position_ = 0;
68 bool last_char_vert_tab_ =
false;
74 std::vector<size_t> indent_ = { 0 };
109 void setTabStops(
const std::vector<int>& stops,
int repeat = 0);
139 void append(
const std::string& input);
152 int nextTabStop(
int position);
154 int getTerminalWidth();
SmartTextFormatter(const std::vector< int > &tabStops, int repeat=0)
Constructor for SmartTextFormatter.
Definition smartTextFormatter.cc:36
void clear()
Clear the formatter.
Definition smartTextFormatter.cc:24
void append(const std::string &input)
Append a string to the formatter.
Definition smartTextFormatter.cc:80
std::string str()
Return the current output of the formatter.
Definition smartTextFormatter.cc:200
void setTabStops(const std::vector< int > &stops, int repeat=0)
Sets the tabstops for the formatter.
Definition smartTextFormatter.cc:44