A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
char.hpp File Reference
#include <cctype>
#include <iostream>
#include <string>
#include <sstream>

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

bool char_is_digit (const char c)
 Return whether a char is a digit (0-9). More...
 
bool char_is_number_part (char const c)
 Return whether a char is valid in a number, i.e., a digit, a dot, plus, minus, or 'e'/'E'. More...
 
bool char_is_sign (const char c)
 Return whether a char is a sign (+-). More...
 
bool char_match_ci (const char c1, const char c2)
 Return whether two chars are the same, case insensitive. More...
 
std::string char_to_hex (char c, bool full=false)
 Return the hex representation of a char. More...
 
char to_lower_ascii (char c)
 Return the lower case of a given char, ascii-only. More...
 
char to_upper_ascii (char c)
 Return the upper case of a given char, ascii-only. More...