40 struct re_pattern_buffer;
static String fromSQLPattern(const String &pattern)
Convert an SQL-like pattern to a regular expression string.
void operator=(const String &str)
Construct a new regex (using the default Regex constructor arguments).
LatticeExprNode exp(const LatticeExprNode &expr)
const Regex RXwhite
some built in regular expressions
static String makeCaseInsensitive(const String &str)
Create a case-insensitive regular expression string from the given regular expression string...
TableExprNode pattern(const TableExprNode &node)
Regex()
Default constructor uses a zero-length regular expression.
static String toEcma(const String &rx)
Convert the possibly old-style regex to the Ecma regex which means that unescaped [ and ] inside a br...
static String fromPattern(const String &pattern)
Convert a shell-like pattern to a regular expression string.
friend ostream & operator<<(ostream &ios, const Regex &exp)
Write the regex string.
string::size_type size_type
Regular expression class (based on std::regex)
String::size_type match(const Char *s, String::size_type len, String::size_type pos=0) const
Test if the regular expression matches (first part of) string s.
bool Bool
Define the standard types used by Casacore.
String::size_type search(const Char *s, String::size_type len, Int &matchlen, Int pos=0) const
Test if the regular expression occurs anywhere in string s.
String::size_type find(const Char *s, String::size_type len, Int &matchlen, String::size_type pos=0) const
static String fromString(const String &str)
Convert a normal string to a regular expression string.
String::size_type searchBack(const Char *s, String::size_type len, Int &matchlen, uInt pos) const
Search backwards.
const String & regexp() const
Get the regular expression string.
TableExprNode regex(const TableExprNode &node)
Functions for regular expression matching and pattern matching.
Bool fullMatch(const Char *s, String::size_type len) const
Test if the regular expression matches the entire string.
String: the storage and methods of handling collections of characters.