|
| WvRegex () |
| Construct an empty regex object. More...
|
|
| WvRegex (WvStringParm regex, int cflags=default_cflags) |
| Construct a regex object, compiling the given regex. More...
|
|
bool | set (WvStringParm regex, int cflags=default_cflags) |
| Replace the current regex to match with a new one. More...
|
|
bool | match (WvStringParm string, WVREGEX_REGS_DECL) const |
| Match a given string against the compiled regular expression. More...
|
|
bool | match (WvStringParm string, int eflags, WVREGEX_REGS_DECL) const |
| Match a given string against the compiled regular expression. More...
|
|
bool | continuable_match (WvStringParm string, int &match_start, int &match_end, WVREGEX_REGS_DECL) const |
| Match a given string against the compiled regular expression, capturing the start and end positions of the matching string. More...
|
|
bool | continuable_match (WvStringParm string, int eflags, int &match_start, int &match_end, WVREGEX_REGS_DECL) const |
| Match a given string against the compiled regular expression, capturing the start and end positions of the matching string. More...
|
|
virtual bool | isok () const |
| By default, returns true if geterr() == 0. More...
|
|
virtual int | geterr () const |
| If isok() is false, return the system error number corresponding to the error, -1 for a special error string (which you can obtain with errstr()) or 0 on end of file. More...
|
|
virtual WvString | errstr () const |
|
void | seterr (WvStringParm specialerr) |
|
void | seterr (WVSTRING_FORMAT_DECL) |
|
void | seterr (const WvErrorBase &err) |
|
void | seterr_both (int _errnum, WvStringParm specialerr) |
|
void | seterr_both (int _errnum, WVSTRING_FORMAT_DECL) |
|
void | noerr () |
| Reset our error state - there's no error condition anymore.
|
|
WvRegex – Unified support for regular expressions.
Supports matching compiled regular expressions and capturing substrings in registers. !
Definition at line 47 of file wvregex.h.
virtual bool WvErrorBase::isok |
( |
| ) |
const |
|
inlinevirtualinherited |
By default, returns true if geterr() == 0.
Might be overridden so that isok() == false even though no error code has been specified.
Reimplemented in IWvStream, WvEncoderStream, WvReadLineStream, WvTCPConn, WvNullListener, WvFdStream, WvLog, WvStream, WvStreamClone, WvSSLStream, WvDBusServer, WvDSAKey, WvTimeStream, WvBufStream, WvListener, WvTimeoutStream, WvIStreamList, and _WvConStream.
Definition at line 39 of file wverror.h.
Referenced by WvListener::isok(), WvStream::isok(), and WvGlob::set().
virtual int WvErrorBase::geterr |
( |
| ) |
const |
|
inlinevirtualinherited |
If isok() is false, return the system error number corresponding to the error, -1 for a special error string (which you can obtain with errstr()) or 0 on end of file.
If isok() is true, returns an undefined number.
Reimplemented in WvStreamClone, and WvDBusServer.
Definition at line 48 of file wverror.h.
Referenced by UniIniGen::commit(), UniFileSystemGen::get(), WvDBusServer::geterr(), WvStreamClone::geterr(), WvEncoderStream::isok(), UniConfDaemon::listen(), WvStream::seterr(), and WvMagicCircle::WvMagicCircle().