A library for working with phylogenetic and population genetic data.
v0.27.0
convert.cpp File Reference
#include "genesis/utils/text/convert.hpp"
#include "genesis/utils/text/string.hpp"
#include <algorithm>
#include <cctype>
#include <limits>
#include <string>
#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

bool convert_to_bool (std::string const &str)
 
bool convert_to_bool_ (std::string const &str, bool &result)
 Local helper function. Converts a string to bool, storing the result in result, and returning whether the conversionw as successfull. More...
 
double convert_to_bool_double (std::string const &str)
 
bool convert_to_bool_double_ (std::string const &str, double &result)
 Local helper function. Converts a string to bool, but stores it as a double, storing the result in result, and returning whether the conversionw as successfull. More...
 
double convert_to_double (std::string const &str)
 
bool convert_to_double_ (std::string const &str, double &result)
 Local helper function. Converts a string to double, storing the result in result, and returning whether the conversionw as successfull. More...
 
bool is_convertible_to_bool (std::string const &str)
 
bool is_convertible_to_bool_double (std::string const &str)
 
bool is_convertible_to_double (std::string const &str)