#include <OpenMS/DATASTRUCTURES/StringUtils.h>
|
| 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)
|
| |
| template<typename IteratorT > |
| static bool | extractDouble (IteratorT &begin, const IteratorT &end, double &target) |
| |
| template<typename IteratorT > |
| static bool | extractInt (IteratorT &begin, const IteratorT &end, int &target) |
| |
◆ extractDouble()
template<typename IteratorT >
| static bool extractDouble |
( |
IteratorT & |
begin, |
|
|
const IteratorT & |
end, |
|
|
double & |
target |
|
) |
| |
|
inlinestatic |
◆ extractInt()
template<typename IteratorT >
| static bool extractInt |
( |
IteratorT & |
begin, |
|
|
const IteratorT & |
end, |
|
|
int & |
target |
|
) |
| |
|
inlinestatic |
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().
◆ toDouble()
| static double toDouble |
( |
const std::string & |
s | ) |
|
|
static |
◆ toFloat()
| static float toFloat |
( |
const std::string & |
s | ) |
|
|
static |
◆ toInt32()
| static Int32 toInt32 |
( |
const std::string & |
s | ) |
|
|
static |
◆ toInt64()
| static Int64 toInt64 |
( |
const std::string & |
s | ) |
|
|
static |
◆ parse_double_
◆ parse_float_
◆ parse_int_
| boost::spirit::qi::int_parser parse_int_ |
|
staticprivate |