#include <pattern_cache.h>
Public Member Functions | |
const c_pattern & | get_pcre (const string &pattern, int options=0) |
Looks to cahce, if not found, insets one entry to cache. | |
void | loop (bool flush_all=false) |
Should be called in a loop (for garbage collection). | |
Static Public Member Functions | |
static e_rc | transform_pattern (const string &orig, string &new_pattern, int &options) |
Transforms pattern from '/blah/i' to 'blah' + adds 'i' to 'options'. | |
Private Types | |
enum | e_rc { E_NO_ERROR = 0, E_INV_PATTERN, E_BEGINNING_DELIMITER, E_ENDING_DELIMITER, E_UNKNOWN_MODIFIER } |
Private Attributes | |
hash_map< pair< string, int > , c_pattern, c_pcre_hasher > | m_cache |
Regexp pattern cache. |
Definition at line 222 of file pattern_cache.h.