#include <rexp.h>
Public Member Functions | |
| RExp () | |
| virtual | ~RExp () |
| void | compile (zmm::String pattern, int flags=0) |
| void | compile (zmm::String pattern, const char *flags) |
| zmm::Ref< Matcher > | matcher (zmm::String text, int nmatch=DEFAULT_NMATCH) |
| zmm::Ref< Matcher > | match (zmm::String text, int nmatch=DEFAULT_NMATCH) |
| bool | matches (zmm::String text) |
| zmm::String | getPattern () |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Protected Attributes | |
| bool | isCompiled |
| zmm::String | pattern |
| regex_t | regex |
| mt_atomic_t | _ref_count |
| pthread_mutex_t | mutex |
Friends | |
| class | Matcher |
Definition at line 43 of file rexp.h.
| RExp::RExp | ( | ) |
Definition at line 49 of file rexp.cc.
References isCompiled.
| RExp::~RExp | ( | ) | [virtual] |
Definition at line 53 of file rexp.cc.
References isCompiled, and regex.
| void RExp::compile | ( | zmm::String | pattern, | |
| const char * | flags | |||
| ) |
Definition at line 75 of file rexp.cc.
References _, _Exception, and compile().
| void RExp::compile | ( | zmm::String | pattern, | |
| int | flags = 0 | |||
| ) |
Definition at line 64 of file rexp.cc.
References _Exception, zmm::String::c_str(), error_string(), isCompiled, and regex.
Referenced by compile().
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| Ref< Matcher > RExp::match | ( | zmm::String | text, | |
| int | nmatch = DEFAULT_NMATCH | |||
| ) |
| Ref< Matcher > RExp::matcher | ( | zmm::String | text, | |
| int | nmatch = DEFAULT_NMATCH | |||
| ) |
| bool RExp::matches | ( | zmm::String | text | ) |
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
friend class Matcher [friend] |
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
bool RExp::isCompiled [protected] |
pthread_mutex_t zmm::Object::mutex [protected, inherited] |
Reimplemented in AutoscanList, AutoscanInotify, CachedURL, Dictionary_r, DVDNavReader, IOHandlerBufferHelper, ReentrantArray< T >, SingletonManager, Singleton< T >, StorageCache, MutexAutolock, Cond, ThreadExecutor, Singleton< UpdateManager >, Singleton< Timer >, Singleton< ContentDirectoryService >, Singleton< ConfigManager >, Singleton< Server >, Singleton< Runtime >, Singleton< ContentManager >, Singleton< ConnectionManagerService >, Singleton< PlayHook >, Singleton< Storage >, and Singleton< SessionManager >.
Definition at line 56 of file object.h.
Referenced by zmm::Object::Object(), zmm::Object::release(), zmm::Object::retain(), and zmm::Object::~Object().
zmm::String RExp::pattern [protected] |
Definition at line 56 of file rexp.h.
Referenced by getPattern().
regex_t RExp::regex [protected] |
1.6.1