OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimRegExp.h>
Public Member Functions | |
ossimRegExp () | |
ossimRegExp (const char *) | |
ossimRegExp (const ossimRegExp &) | |
~ossimRegExp () | |
void | compile (const char *) |
bool | find (const char *) |
ossim_uint32 | start () const |
ossim_uint32 | end () const |
bool | operator== (const ossimRegExp &) const |
bool | operator!= (const ossimRegExp &) const |
bool | deep_equal (const ossimRegExp &) const |
bool | is_valid () const |
void | set_invalid () |
ossim_uint32 | start (ossim_uint32 n) const |
ossim_uint32 | end (ossim_uint32 n) const |
std::string | match (ossim_uint32 n) const |
Private Member Functions | |
char * | reg (int, int *) |
char * | regbranch (int *) |
char * | regpiece (int *) |
char * | regatom (int *) |
char * | regnode (char) |
const char * | regnext (const char *) |
char * | regnext (char *) |
void | regc (unsigned char) |
void | reginsert (char, char *) |
void | regtail (char *, const char *) |
void | regoptail (char *, const char *) |
int | regtry (const char *, const char **, const char **, const char *) |
int | regmatch (const char *) |
int | regrepeat (const char *) |
Private Attributes | |
const char * | startp [NSUBEXP] |
const char * | endp [NSUBEXP] |
char | regstart |
char | reganch |
const char * | regmust |
ossim_uint32 | regmlen |
char * | program |
ossim_uint32 | progsize |
const char * | searchstring |
const char * | regparse |
int | regnpar |
char | regdummy |
char * | regcode |
long | regsize |
const char * | reginput |
const char * | regbol |
const char ** | regstartp |
const char ** | regendp |
Definition at line 75 of file ossimRegExp.h.
|
inline |
Definition at line 144 of file ossimRegExp.h.
|
inline |
ossimRegExp::ossimRegExp | ( | const ossimRegExp & | rxp | ) |
|
inline |
void ossimRegExp::compile | ( | const char * | exp | ) |
Definition at line 405 of file ossimRegExp.cpp.
References BOL, END, endp, EXACTLY, MAGIC, OP, OPERAND, program, progsize, reg(), reganch, regc(), regcode, regdummy, regmlen, regmust, regnext(), regnpar, regparse, regsize, regstart, searchstring, SPSTART, and startp.
Referenced by ossimKeywordlist::add(), ossimKeywordlist::addPrefixToKeysThatMatch(), ossimTraceManager::addTrace(), ossimString::afterRegExp(), ossimString::beforeRegExp(), ossimKeywordlist::extractKeysThatMatch(), ossimDirectoryTree::findAllFilesThatMatch(), ossimDirectory::findAllFilesThatMatch(), ossimKeywordlist::findAllKeysThatMatch(), ossimString::fromRegExp(), ossimKeywordlist::getNumberOfKeysThatMatch(), ossimKeywordlist::getSubstringKeyList(), ossimString::match(), ossimRegExp(), ossimKeywordlist::removeKeysThatMatch(), ossimString::replaceAllThatMatch(), ossimString::replaceStrThatMatch(), ossimSrtmFilename::setFilename(), ossimTraceManager::setTraceFlags(), and ossimKeywordlist::stripPrefixFromAll().
bool ossimRegExp::deep_equal | ( | const ossimRegExp & | rxp | ) | const |
|
inline |
Definition at line 217 of file ossimRegExp.h.
References endp, and searchstring.
Referenced by ossimString::afterRegExp(), ossimFilename::drive(), ossimKeywordlist::getSubstringKeyList(), ossimString::match(), regtry(), ossimString::replaceAllThatMatch(), ossimString::replaceStrThatMatch(), ossimSrtmFilename::setFilename(), and ossimKeywordlist::stripPrefixFromAll().
|
inline |
bool ossimRegExp::find | ( | const char * | string | ) |
Definition at line 948 of file ossimRegExp.cpp.
References endp, MAGIC, program, reganch, regbol, regmlen, regmust, regstart, regtry(), searchstring, startp, and UCHARAT.
Referenced by ossimKeywordlist::add(), ossimKeywordlist::addPrefixToKeysThatMatch(), ossimTraceManager::addTrace(), ossimString::afterRegExp(), ossimString::beforeRegExp(), ossimFilename::drive(), ossimString::expandEnvironmentVariable(), ossimKeywordlist::extractKeysThatMatch(), ossimDirectoryTree::findAllFilesThatMatch(), ossimDirectory::findAllFilesThatMatch(), ossimKeywordlist::findAllKeysThatMatch(), ossimString::fromRegExp(), ossimKeywordlist::getNumberOfKeysThatMatch(), ossimKeywordlist::getSubstringKeyList(), ossimFilename::isRelative(), ossimString::match(), ossimDtedInfo::open(), ossimKeywordlist::removeKeysThatMatch(), ossimString::replaceAllThatMatch(), ossimString::replaceStrThatMatch(), ossimSrtmFilename::setFilename(), ossimTraceManager::setTraceFlags(), ossimKeywordlist::stripPrefixFromAll(), and ossimKeywordlist::writeToStream().
|
inline |
Definition at line 232 of file ossimRegExp.h.
References program.
Referenced by ossimString::replaceAllThatMatch(), and ossimString::replaceStrThatMatch().
|
inline |
Definition at line 259 of file ossimRegExp.h.
|
inline |
Definition at line 224 of file ossimRegExp.h.
bool ossimRegExp::operator== | ( | const ossimRegExp & | rxp | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 850 of file ossimRegExp.cpp.
References regcode, regdummy, and regsize.
Referenced by regpiece().
|
private |
|
private |
Definition at line 1268 of file ossimRegExp.cpp.
References BACK, NEXT, OP, and regdummy.
Referenced by compile(), reg(), regmatch(), and regtail().
|
private |
|
private |
Definition at line 814 of file ossimRegExp.cpp.
References regcode, regdummy, and regsize.
Referenced by reg(), regatom(), regbranch(), and regpiece().
|
private |
Definition at line 905 of file ossimRegExp.cpp.
References BRANCH, OP, OPERAND, regdummy, and regtail().
Referenced by reg(), and regpiece().
|
private |
Definition at line 622 of file ossimRegExp.cpp.
References BACK, BRANCH, HASWIDTH, ISMULT, NOTHING, PLUS, regatom(), reginsert(), regnode(), regoptail(), regparse, regtail(), SIMPLE, SPSTART, STAR, and WORST.
Referenced by regbranch().
|
private |
Definition at line 1225 of file ossimRegExp.cpp.
References ANY, ANYBUT, ANYOF, EXACTLY, OP, OPERAND, and reginput.
Referenced by regmatch().
|
private |
Definition at line 876 of file ossimRegExp.cpp.
References BACK, OP, regdummy, and regnext().
Referenced by reg(), regbranch(), regoptail(), and regpiece().
|
private |
Definition at line 1006 of file ossimRegExp.cpp.
References end(), NSUBEXP, regendp, reginput, regmatch(), regstartp, and start().
Referenced by find().
|
inline |
|
inline |
Definition at line 209 of file ossimRegExp.h.
References searchstring, and startp.
Referenced by ossimString::beforeRegExp(), ossimFilename::drive(), ossimString::expandEnvironmentVariable(), ossimString::fromRegExp(), ossimKeywordlist::getSubstringKeyList(), ossimString::match(), regtry(), ossimString::replaceAllThatMatch(), ossimString::replaceStrThatMatch(), ossimSrtmFilename::setFilename(), and ossimKeywordlist::stripPrefixFromAll().
|
inline |
|
private |
Definition at line 101 of file ossimRegExp.h.
Referenced by compile(), deep_equal(), end(), find(), match(), and ossimRegExp().
|
private |
Definition at line 106 of file ossimRegExp.h.
Referenced by compile(), deep_equal(), find(), is_valid(), operator==(), ossimRegExp(), set_invalid(), and ~ossimRegExp().
|
private |
Definition at line 107 of file ossimRegExp.h.
Referenced by compile(), deep_equal(), operator==(), and ossimRegExp().
|
private |
Definition at line 103 of file ossimRegExp.h.
Referenced by compile(), find(), and ossimRegExp().
|
private |
Definition at line 117 of file ossimRegExp.h.
Referenced by find(), and regmatch().
|
mutableprivate |
Definition at line 114 of file ossimRegExp.h.
Referenced by compile(), regc(), reginsert(), and regnode().
|
mutableprivate |
Definition at line 113 of file ossimRegExp.h.
Referenced by compile(), regc(), reginsert(), regnext(), regnode(), regoptail(), and regtail().
|
private |
Definition at line 119 of file ossimRegExp.h.
Referenced by regmatch(), and regtry().
|
private |
Definition at line 116 of file ossimRegExp.h.
Referenced by regmatch(), regrepeat(), and regtry().
|
private |
Definition at line 105 of file ossimRegExp.h.
Referenced by compile(), find(), and ossimRegExp().
|
private |
Definition at line 104 of file ossimRegExp.h.
Referenced by compile(), find(), and ossimRegExp().
|
mutableprivate |
Definition at line 112 of file ossimRegExp.h.
|
mutableprivate |
Definition at line 111 of file ossimRegExp.h.
Referenced by compile(), reg(), regatom(), regbranch(), and regpiece().
|
mutableprivate |
Definition at line 115 of file ossimRegExp.h.
Referenced by compile(), regc(), reginsert(), and regnode().
|
private |
Definition at line 102 of file ossimRegExp.h.
Referenced by compile(), find(), and ossimRegExp().
|
private |
Definition at line 118 of file ossimRegExp.h.
Referenced by regmatch(), and regtry().
|
private |
|
private |
Definition at line 100 of file ossimRegExp.h.
Referenced by compile(), deep_equal(), find(), match(), ossimRegExp(), and start().