![]() |
OpenMS
|
#include <OpenMS/DATASTRUCTURES/StringUtils.h>
Static Public Member Functions | |
| static Int32 | toInt32 (const std::string &s) |
| Parse int32 from string (leading/trailing whitespace allowed) | |
| static Int64 | toInt64 (const std::string &s) |
| Parse int64 from string (leading/trailing whitespace allowed) | |
| static float | toFloat (const std::string &s) |
| Parse float from string (leading/trailing whitespace allowed) | |
| static double | toDouble (const std::string &s) |
| Parse double from string (leading/trailing whitespace allowed) | |
| static bool | extractDouble (const char *&begin, const char *end, double &target) |
| static bool | extractInt (const char *&begin, const char *end, int &target) |
|
static |
Parse a double starting at begin; advances begin on success. Whitespace is NOT consumed. Returns false if no double found.
Referenced by OpenMS::StringUtils::extractDouble(), OpenMS::StringUtils::extractDouble(), and OpenMS::StringUtils::extractDouble().
|
static |
Parse an int starting at begin; advances begin on success. Whitespace is NOT consumed. Returns false if no int found.
Referenced by OpenMS::StringUtils::extractInt(), OpenMS::StringUtils::extractInt(), and OpenMS::StringUtils::extractInt().
|
static |
Parse double from string (leading/trailing whitespace allowed)
Referenced by OpenMS::StringUtils::toDouble().
|
static |
Parse float from string (leading/trailing whitespace allowed)
Referenced by OpenMS::StringUtils::toFloat().
|
static |
Parse int32 from string (leading/trailing whitespace allowed)
Referenced by OpenMS::StringUtils::toInt32().
|
static |
Parse int64 from string (leading/trailing whitespace allowed)
Referenced by OpenMS::StringUtils::toInt64().