StringHelpers.h File Reference
#include "Math/ExtendedMath.h"
#include <string>
#include <memory>

Go to the source code of this file.

Namespaces

 helpers
 

Functions

std::string helpers::lower (std::string s)
 returns the input string after converting upper-case characters to lower case More...
 
void helpers::getLineFromStringStream (std::istream &in, std::stringstream &out)
 Reads a line from one stringstream into another, and prepares the latter for reading in. More...
 
bool helpers::isNext (std::istream &is, const std::string &name)
 Checks if the next argument in the input stream equals a certain string. When true, the current position is that of the next argument. When false, the current position remains unchanged. More...
 
MERCURYDPM_DEPRECATED bool helpers::compare (std::istream &is, const std::string &s)
 Checks if the next argument in the input stream is a certain string. More...
 
bool helpers::lookAhead (std::istream &is, const std::string &name, int number)
 Checks if the nth argument from the current position in the input stream equals a certain string. The current position remains unchanged. More...
 
std::string helpers::toString (Mdouble value, unsigned precision)
 converts a floating point number into a string with a given precision More...
 
template<typename T >
std::string helpers::toString (const T &n)
 
template<typename T >
std::string helpers::toString (const std::vector< T > &vec)
 
template<typename... Args>
std::string helpers::stringFormat (const std::string &format, Args... args)