|
|
template<typename T > |
| static T | FromString (const std::string &s) |
| | Builds a value of type T representation from a string.
|
| |
|
constexpr double | pi () |
| | Math constant pi.
|
| |
|
void | printArgv (int argc, char *argv[], std::ostream &os) |
| |
| template<typename T > |
| constexpr int | signum (T x, std::false_type) |
| | Overload for unsigned types. More...
|
| |
| template<typename T > |
| constexpr int | signum (T x, std::true_type) |
| | Overload for signed types. More...
|
| |
| template<typename T > |
| constexpr int | signum (T x) |
| | Select particular overload via tag dispatch. More...
|
| |
|
constexpr double | small_real () |
| | Small real number.
|
| |
|
static std::vector< std::string > | Tokenize (const std::string &str, const std::string &delimiters) |
| | Tokenize a string (in order of occurence) by splitting it on the given delimiters.
|
| |
|
template<typename T > |
| static std::string | ToString (const T &value) |
| | Builds a string representation of a value of type T.
|
| |
|
template<typename T > |
| static std::string | ToString (const T &value, int width, char fill= ' ') |
| | Builds a string representation with minimum width of a value of type T.
|
| |
|
static std::string | ToUpper (const std::string &source) |
| | Builds a string with upper case characters only.
|
| |
|
static std::string | Trim (const std::string &source, const std::string &t=" ") |
| | Trim characters at both ends of string.
|
| |
|
static std::string | TrimLeft (std::string const &source, const std::string &t=" ") |
| | Trim characters at left end of string.
|
| |
|
static std::string | TrimRight (const std::string &source, const std::string &t=" ") |
| | Trim characters at right end of string.
|
| |
|
constexpr double | two_pi () |
| | Math constant 2*pi.
|
| |
Namespace for miscellaneous utilities.