OpendTect
6.6
|
Glob-expression matching like UNIX shells. More...
Public Member Functions | |
GlobExpr (const char *s=nullptr, bool casesens=true) | |
GlobExpr (const GlobExpr &ge) | |
const char * | expressionFailMessage () const |
Normally null, only filled if invalid expression. More... | |
bool | matches (const char *t) const |
operator const char * () const | |
GlobExpr & | operator= (const GlobExpr &ge) |
bool | operator== (const GlobExpr &ge) const |
void | set (const char *) |
void | setCaseInSensitive (bool yn=true) |
Static Public Member Functions | |
static bool | matches (const char *expression, const char *txt, const char *&errmsg_if_expression_is_incorrect, bool caseinsens) |
Static Protected Member Functions | |
static bool | starMatches (const char *, const char *, const char *&, bool) |
Protected Attributes | |
bool | ci_ |
const char * | errmsg_ |
BufferString | expr_ |
Glob-expression matching like UNIX shells.
Expressions may have '*', '?' and [] (e.g. [a-eA-E]) constructions. Also the inverted selection with '^' or '!' supported (e.g. [^x-z] or [!akPZ]). Escape the special chars with '\';
<>
|
inline |
|
inline |
|
inline |
Normally null, only filled if invalid expression.
|
static |
|
inline |
|
inline |
|
inline |
void GlobExpr::set | ( | const char * | ) |
|
inline |
|
staticprotected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022