A library for working with phylogenetic and population genetic data.
v0.27.0
parser.hpp File Reference
#include "genesis/utils/io/input_stream.hpp"
#include "genesis/utils/text/char.hpp"
#include <cassert>
#include <cctype>
#include <limits>
#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

template<class T >
parse_float (utils::InputStream &source)
 Read a floating point number from a stream and return it. More...
 
template<class T >
parse_integer (utils::InputStream &source)
 Alias for parse_signed_integer(). More...
 
std::string parse_number_string (utils::InputStream &source)
 Read a general number string from an input stream. More...
 
std::string parse_quoted_string (utils::InputStream &source, bool use_escapes=true, bool use_twin_quotes=false, bool include_qmarks=false)
 Read a string in quotation marks from a stream and return it. More...
 
template<class T >
parse_signed_integer (utils::InputStream &source)
 Read a signed integer from a stream and return it. More...
 
template<class T >
parse_unsigned_integer (utils::InputStream &source)
 Read an unsigned integer from a stream and return it. More...