1 #ifndef sprockit_regexp_h 2 #define sprockit_regexp_h 5 #if !SPKT_DISABLE_REGEXP 29 double get_regexp_double(
const std::string ®exp,
const std::string &text,
int flags = 0);
38 std::string
get_regexp_string(
const std::string ®exp,
const std::string &text,
int flags = 0);
48 double*
get_regexp_double_array(
const std::string& regexp,
const std::string &text,
size_t& length,
int flags = 0);
58 findmatch(std::vector<std::string>& matches,
const std::string ®exp,
const std::string &text,
int flags = 0);
76 bool has_regexp_match(
const std::string& regexp,
const std::string& text,
int flags = 0);
bool get_regexp_integer(const std::string &string, int &ret)
double get_regexp_double(const std::string ®exp, const std::string &text, int flags=0)
Extracts a double precision number from text.
void findmatch(std::vector< std::string > &matches, const std::string ®exp, const std::string &text, int flags=0)
Extracts strings from text, according to a given RegEx.
bool is_regexp_integer(const std::string &str)
bool has_regexp_match(const std::string ®exp, const std::string &text, int flags=0)
Tests a string to see if it contains a certain RegEx.
std::string get_regexp_string(const std::string ®exp, const std::string &text, int flags=0)
Extracts a string from text.
double * get_regexp_double_array(const std::string ®exp, const std::string &text, size_t &length, int flags=0)
Extracts an array of doubles from text, according to a given RegEx.