File containing general purpose functions parsing strings. More...
#include "cgatools/core.hpp"
#include "cgatools/util/Exception.hpp"
#include <string>
#include <vector>
#include <string.h>
#include <boost/static_assert.hpp>
Go to the source code of this file.
Classes | |
struct | cgatools::util::ValueParser< Value, IsSigned > |
struct | cgatools::util::ValueParser< Value, true > |
struct | cgatools::util::ValueParser< Value, false > |
struct | cgatools::util::ValueParser< float, true > |
struct | cgatools::util::ValueParser< double, true > |
Namespaces | |
namespace | cgatools |
Namespace containing the libcgatools API. | |
namespace | cgatools::util |
Namespace for general-purpose utilities. | |
Defines | |
#define | CGATOOLS_UTIL_PARSE_HPP_ 1 |
Functions | |
float | cgatools::util::parseFloat (const char *first, const char *last) |
double | cgatools::util::parseDouble (const char *first, const char *last) |
template<typename Value > | |
Value | cgatools::util::parseValue (const char *first, const char *last) |
Parse the string to the given Value type. | |
template<typename Value > | |
Value | cgatools::util::parseValue (const char *str) |
Parse the string to the given Value type. | |
template<typename Value > | |
Value | cgatools::util::parseValue (const std::string &str) |
Parse the string to the given Value type. | |
void | cgatools::util::parseTokenString (std::string const &inputString, char const *sep, std::vector< std::string > &tokens, bool trimWhitespace=false, bool compressEmpty=false) |
Parse a user-token-specified separated string The function can be used if the input string format is not strictly defined. |
File containing general purpose functions parsing strings.