5#ifndef BALL_DATATYPE_REGULAREXPRESSION_H
6#define BALL_DATATYPE_REGULAREXPRESSION_H
12#include <boost/regex.h>
14#if !defined(__GNUC__) && !defined(__KAI__) && defined(IRIX)
15# pragma reset woff 1174
18#ifndef BALL_DATATYPE_STRING_H
22#define BALL_REGULAR_EXPRESSION_DEFAULT_PATTERN ""
126 void set(const
String& pattern,
bool wildcard_pattern = false);
149 static
bool match(const
char* text, const
char* pattern,
150 int compile_flags = 0 | REG_EXTENDED | REG_NOSUB,
int execute_flags = 0);
176 bool match(const
char* text,
int execute_flags = 0) const;
186 Index from = 0,
int execute_flags = 0) const;
197 Index from = 0,
int execute_flags = 0) const;
267 void compilePattern_();
269 void toExtendedRegularExpression_();
277# ifndef BALL_NO_INLINE_FUNCTIONS
278# include <BALL/DATATYPE/regularExpression.iC>
void set(const RegularExpression ®ular_expression)
Assign from another instance.
static const String NON_NUMERIC
const String & getPattern() const
Get the expression pattern.
static bool match(const char *text, const char *pattern, int compile_flags=0|REG_EXTENDED|REG_NOSUB, int execute_flags=0)
virtual void clear()
Reset the object attributes to their default values.
static const String INTEGER
static const String UPPERCASE
static const String HEXADECIMAL_INTEGER
static const String ALPHANUMERIC
static const String NON_ALPHANUMERIC
RegularExpression()
Default constructor.
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
static const String WHITESPACE
void get(RegularExpression ®ular_expression) const
Assign to another instance.
static const String ALPHA
Size countSubexpressions() const
Count subexpressions.
static const String NON_ALPHA
virtual bool isValid() const
static const String LOWERCASE
static const String IDENTIFIER
static const String NON_WHITESPACE
void destroy()
Destroy the instance.
bool find(const String &text, Substring &found, Index from=0, int execute_flags=0) const
#define BALL_CREATE(name)