Public Member Functions | Static Public Member Functions | Private Types | Private Attributes

c_pattern_cache Class Reference

#include <pattern_cache.h>

Collaboration diagram for c_pattern_cache:

List of all members.

Public Member Functions

const c_patternget_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.

Detailed Description

Definition at line 222 of file pattern_cache.h.


The documentation for this class was generated from the following files:

Generated on Sat Aug 7 2010 15:34:12 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads