Go to the documentation of this file.
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/BasicSL/RegexBase.h>
34 #include <casacore/casa/iosfwd.h>
39 struct re_pattern_buffer;
217 const Char *translation = 0);
Int match_info(Int &start, Int &length, Int nth=0) const
Return some internal cregex info.
static String fromSQLPattern(const String &pattern)
Convert an SQL-like pattern to a regular expression.
virtual String::size_type search(const Char *s, String::size_type len, Int &matchlen, Int pos=0) const
Test if the regular expression occurs in string s.
Regex & operator=(const String &strng)
virtual String::size_type match(const Char *s, String::size_type len, String::size_type pos=0) const
Test if the regular expression matches (part of) string s.
static String makeCaseInsensitive(const String &strng)
Create a case-insensitive reular expression string from the given regular expression string.
static String fromString(const String &strng)
Convert a normal string to a regular expression.
Data structure to store register contents data in.
Regex()
Default constructor uses a zero-length regular expression.
friend ostream & operator<<(ostream &ios, const Regex &exp)
Write as ASCII.
Regex(const Regex &that)
Copy constructor (copy semantics).
Regex & operator=(const Regex &that)
Assignment (copy semantics).
static String fromPattern(const String &pattern)
Convert a shell-like pattern to a regular expression.
Regex(const String &exp, Bool fast=False, Int sz=40, const Char *translation=0)
Construct a regular expression.
Bool OK() const
Does it contain a valid Regex?
this file contains all the compiler specific defines
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
void create(const String &, Int, Int, const Char *)
Compile the regular expression.
string::size_type size_type
const String & regexp() const
Get the regular expression string.
virtual String::size_type find(const Char *s, String::size_type len, Int &matchlen, String::size_type pos=0) const
Search string s of length len, starting at position pos.
String: the storage and methods of handling collections of characters.
const Char * transtable() const
Get the translation table (can be a zero pointer).
bool Bool
Define the standard types used by Casacore.
const Regex RXwhite
some built in regular expressions
TableExprNode pattern(const TableExprNode &node)
void dealloc()
Deallocate the stuff allocated by create.
LatticeExprNode exp(const LatticeExprNode &expr)