BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
string_formatting.hpp File Reference
#include <string>
#include <vector>
Include dependency graph for string_formatting.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 bst
 
 bst::layout
 
 bst::string
 

Enumerations

enum class  bst::layout::Alignment { bst::layout::LEFT , bst::layout::RIGHT , bst::layout::CENTER }
 

Functions

std::string bst::string::b2s (const bool b, const bool upper=false)
 
std::string bst::string::f2s (const double d, const int precision=2)
 
std::string bst::layout::fixedWidthRow (const std::vector< std::string > &row, const Alignment align, const int row_width)
 
std::string bst::layout::fixedWidthString (const std::string &s, const Alignment align, const int width)
 
std::string bst::string::i2s (const int i)
 
std::string bst::string::intToHex (const int i, const int width=2, const bool include_0x=true, const bool uppercase=true)
 Converts an integer to a hexadecimal string. More...
 
std::string bst::layout::simpleColumns (const std::vector< std::vector< std::string >> &rows, const Alignment align, const int column_width)