39 struct re_pattern_buffer;
217 const Char *translation = 0);
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.
static String fromSQLPattern(const String &pattern)
Convert an SQL-like pattern to a regular expression.
static String makeCaseInsensitive(const String &strng)
Create a case-insensitive reular expression string from the given regular expression string...
Data structure to store register contents data in.
This data structure is used to represent a compiled pattern.
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.
LatticeExprNode exp(const LatticeExprNode &expr)
static String fromString(const String &strng)
Convert a normal string to a regular expression.
const Regex RXwhite
some built in regular expressions
TableExprNode pattern(const TableExprNode &node)
Regex()
Default constructor uses a zero-length regular expression.
Regex & operator=(const Regex &that)
Assignment (copy semantics).
static String fromPattern(const String &pattern)
Convert a shell-like pattern to a regular expression.
friend ostream & operator<<(ostream &ios, const Regex &exp)
Write as ASCII.
string::size_type size_type
Regular expression class.
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
bool Bool
Define the standard types used by Casacore.
Int match_info(Int &start, Int &length, Int nth=0) const
Return some internal cregex info.
Bool OK() const
Does it contain a valid Regex?
void create(const String &, Int, Int, const Char *)
Compile the regular expression.
const String & regexp() const
Get the regular expression string.
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.
const Char * transtable() const
Get the translation table (can be a zero pointer).
Abstract interface class to regular expressions for String.
String: the storage and methods of handling collections of characters.
void dealloc()
Deallocate the stuff allocated by create.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.