26 #ifndef MERCURYDPM_STRING_HELPERS_H
27 #define MERCURYDPM_STRING_HELPERS_H
38 std::string
lower(std::string s);
45 bool isNext(std::istream& is,
const std::string
name);
50 bool compare(std::istream& is, std::string s);
60 std::ostringstream stm;
66 std::string
toString(
const std::vector<T>& vec)
68 std::ostringstream stm;
69 for (
const auto val : vec) {
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
double Mdouble
Definition: GeneralDefine.h:34
Definition: CommandLineHelpers.h:32
bool compare(std::istream &is, std::string s)
Checks if the next argument in the input stream is a certain string.
Definition: StringHelpers.cc:90
std::string lower(std::string s)
returns the input string after converting upper-case characters to lower case
Definition: StringHelpers.cc:32
void getLineFromStringStream(std::istream &in, std::stringstream &out)
Reads a line from one stringstream into another, and prepares the latter for reading in.
Definition: StringHelpers.cc:62
bool isNext(std::istream &is, const std::string name)
Definition: StringHelpers.cc:78
std::string toString(Mdouble value, unsigned precision)
converts a floating point number into a string with a given precision
Definition: StringHelpers.cc:38
std::string name
Definition: MercuryProb.h:48