ZeroErr
Loading...
Searching...
No Matches
table.cpp File Reference
#include <sstream>
#include "zeroerr/table.h"
#include "zeroerr/assert.h"
#include "zeroerr/log.h"
#include <algorithm>
#include <map>
Include dependency graph for table.cpp:

Classes

struct  zeroerr::StyleManager

Namespaces

namespace  zeroerr

Macros

#define left   (c.show_lr_border ? s.m_args[p] : "")
#define space   s.m_args[p + 1]
#define bar   (c.show_col_split ? s.m_args[p + 2] : s.m_args[p + 1])
#define right   (c.show_lr_border ? s.m_args[p + 3] : "")
#define last   (i == header.size() - 1)
#define for_row
#define rep(k, t)
#define remain(k)

Functions

zeroerr::String zeroerr::_rept (unsigned k, zeroerr::String j, Table::Style &)

Macro Definition Documentation

◆ bar

#define bar   (c.show_col_split ? s.m_args[p + 2] : s.m_args[p + 1])

◆ for_row

#define for_row
Value:
if (!skip_lb) \
ss << std::endl; \
else \
skip_lb = false; \
ss << left; \
for (size_t i = 0; i < header.size(); ++i)
#define left
Definition table.cpp:250

◆ last

#define last   (i == header.size() - 1)

◆ left

#define left   (c.show_lr_border ? s.m_args[p] : "")

◆ remain

#define remain ( k)
Value:
(col_width[i] - static_cast<unsigned>(k.size()))

◆ rep

#define rep ( k,
t )
Value:
_rept(k, t, s)

◆ right

#define right   (c.show_lr_border ? s.m_args[p + 3] : "")

◆ space

#define space   s.m_args[p + 1]