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

Classes

struct  zeroerr::StyleManager
 

Namespaces

 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)   _rept(k, t, s)
 
#define remain(k)   (col_width[i] - static_cast<unsigned>(k.size()))
 

Functions

std::string zeroerr::_rept (unsigned k, std::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)    (col_width[i] - static_cast<unsigned>(k.size()))

◆ rep

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

◆ right

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

◆ space

#define space   s.m_args[p + 1]