Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
27 #ifndef SHARED_SRC_UTIL_INCLUDE_REGULAR_EXPRESSIONS_H_
28 #define SHARED_SRC_UTIL_INCLUDE_REGULAR_EXPRESSIONS_H_
47 pcre *re_compiled_expression_p;
50 pcre_extra *re_extra_p;
53 const char *re_target_s;
56 uint32 re_num_matches;
59 int *re_substring_vectors_p;
62 uint32 re_num_vectors;
65 uint32 re_current_substring_index;
char * GetNextMatch(RegExp *reg_ex_p)
Get the next match from a regular expression.
void ClearRegExp(RegExp *reg_ex_p)
Clear a RegExp ready to re-use with a different pattern.
bool MatchPattern(RegExp *reg_ex_p, const char *value_s)
Test whether a regular expression has any matches for a given value.
const uint32 DEFAULT_NUM_REGEXP_VECTORS
The default upper limit for he number of matches that a RegExp can make.
Definition: regular_expressions.h:37
bool SetPattern(RegExp *reg_ex_p, const char *pattern_s, int options)
Set the pattern that a given RegExp will use for its regular expression.
uint32 GetNumberOfMatches(const RegExp *reg_ex_p)
Get the number of matchers after running MatchPattern().
void FreeRegExp(RegExp *reg_ex_p)
Free a RegExp.
RegExp * AllocateRegExp(uint32 num_vectors)
Allocate a RegExp.
#define GRASSROOTS_UTIL_API
Definition: grassroots_util_library.h:47
The module used for performing regular expressions.
Definition: regular_expressions.h:44