#include <string>
#include <sstream>
#include <cstdlib>
#include <vector>
#include "runtime_error.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
std::string int void | convertString (const std::string &s, T &x, bool failIfLeftoverChars=true) |
std::string | formatString (const char *fmt,...) __attribute__((format(printf |
template<typename OutputIterator > | |
OutputIterator | readFloats (const char *str, OutputIterator out) |
template<typename OutputIterator > | |
OutputIterator | readInts (const char *str, OutputIterator out) |
bool | strEndsWith (const std::string &str, const std::string &substr) |
std::string | strExpandFilename (const std::string &filename) |
template<typename T > | |
T | stringToType (const std::string &s, bool failIfLeftoverChars=true) |
std::string int | strPrintf (std::string &str, const char *fmt,...) __attribute__((format(printf |
std::vector< std::string > | strSplit (const std::string &s, const std::string &delim) |
bool | strStartsWith (const std::string &str, const std::string &substr) |
std::string | strToLower (const std::string &s) |
std::string | strToUpper (const std::string &s) |
std::string | trim (const std::string &s) |
std::string | trimLeft (const std::string &s) |
std::string | trimRight (const std::string &s) |