 |
OpendTect
6.6
|
Go to the documentation of this file.
29 GlobExpr(
const char* s=
nullptr,
bool casesens=
true )
30 : expr_(
""),
errmsg_(nullptr), ci_(!casesens)
33 : expr_(ge.expr_),
errmsg_(nullptr), ci_(ge.ci_) {}
43 return expr_ == ge.
expr_ && ci_ == ge.
ci_;
48 void set(
const char*);
49 inline operator const char*()
const
52 inline bool matches(
const char* t )
const
53 {
return matches( expr_, t,
54 const_cast<const char*&
>(
errmsg_), ci_ ); }
58 static bool matches(
const char* expression,
const char* txt,
59 const char*& errmsg_if_expression_is_incorrect,
68 static bool starMatches(
const char*,
const char*,
const char*&,
bool);
GlobExpr(const char *s=nullptr, bool casesens=true)
Definition: globexpr.h:29
static bool starMatches(const char *, const char *, const char *&, bool)
Glob-expression matching like UNIX shells.
Definition: globexpr.h:26
#define mExpClass(module)
Definition: commondefs.h:177
GlobExpr & operator=(const GlobExpr &ge)
Definition: globexpr.h:34
const char * expressionFailMessage() const
Normally null, only filled if invalid expression.
Definition: globexpr.h:55
bool matches(const char *t) const
Definition: globexpr.h:52
static bool matches(const char *expression, const char *txt, const char *&errmsg_if_expression_is_incorrect, bool caseinsens)
GlobExpr(const GlobExpr &ge)
Definition: globexpr.h:32
BufferString expr_
Definition: globexpr.h:64
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
bool operator==(const GlobExpr &ge) const
Definition: globexpr.h:41
BufferString errmsg_
Definition: horizontracker.h:118
bool ci_
Definition: globexpr.h:66
const char * errmsg_
Definition: globexpr.h:65
void setCaseInSensitive(bool yn=true)
Definition: globexpr.h:46
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021