Implementation of string utility functions.
Definition in file char.cpp.
#include "genesis/utils/text/char.hpp"
#include <array>
#include <cassert>
#include <cctype>
#include <iomanip>
#include <ios>
#include <iostream>
#include <sstream>
#include <stdexcept>
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 | |
std::string | char_to_hex (char c, bool full=true) |
Return the name and hex representation of a char . More... | |
std::string | char_to_hex (unsigned char c, bool full=true) |
Return the name and hex representation of a char , given as an unsigned char . More... | |
Variables | |
static const std::array< std::string, 128 > | ascii_names_ |
List of all ASCII names. More... | |
static const std::array< std::string, 128 > | ascii_symbols_ |
List of all ASCII symbols. More... | |