A library for working with phylogenetic and population genetic data.
v0.27.0
style.cpp File Reference
#include "genesis/utils/text/style.hpp"
#include "genesis/utils/text/string.hpp"
#include <algorithm>
#include <cassert>
#include <ostream>
#include <stdexcept>
#include <vector>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

static std::string get_attribute_string_ (Style const &s)
 Internal helper function that returns the attribute string of a Style based on its properties. More...
 
static std::array< std::pair< std::string, std::string >, 17 >::const_iterator get_background_color_iterator (std::string name)
 Internal helper function that returns an iterator into the background color list. More...
 
static std::array< std::pair< std::string, std::string >, 17 >::const_iterator get_foreground_color_iterator (std::string name)
 Internal helper function that returns an iterator into the foreground color list. More...
 
std::ostream & operator<< (std::ostream &out, Style const &style)
 Print the properties of a Style object to a stream. More...