stator
A math, geometry, and utility library
Classes | Namespaces | Typedefs | Functions
repr.hpp File Reference
#include <stator/orphan/template_config.hpp>
#include <limits>
#include <memory>
#include <cstdio>

Go to the source code of this file.

Classes

struct  stator::Debug_output
 
struct  stator::Latex_output
 
struct  stator::ReprConfig< Args >
 
struct  stator::Rounding_digits< digits >
 
struct  stator::detail::Rounding_digits_ID
 

Namespaces

 stator
 The stator library namespace.
 
 stator::detail
 Namespace containing the details of the implmentation for general stator components.
 

Typedefs

using stator::DefaultReprConfig = ReprConfig<>
 

Functions

template<class Config = DefaultReprConfig, typename T >
std::enable_if< std::is_integral< T >::value, std::string >::type stator::repr (T a)
 
template<class Config , class Float >
std::enable_if< std::is_floating_point< Float >::value, std::string >::type stator::repr (Float a)
 
std::pair< std::string, size_t > stator::search_replace (std::string in, const std::string &from, const std::string &to)
 Search and replace elements in a std::string. More...
 
template<typename ... Args>
std::string stator::string_format (const std::string &format, Args ... args)
 A C++ version of snprintf allowing simple formatting of output. format A printf-style formatting string, such as "%.17f %s %g". args The arguments for substitution into the placeholders in the formatting string. More...
 
std::string stator::strip (const std::string &str, const std::string &whitespace=" \)
 A C++ version of python's string trim function str The string to be trimmed. whitespace A string of characters to be treated as whitespace and trimmed from the start and end of the string. More...