Logo Search packages:      
Sourcecode: pan version File versions

pan::TextMatch Class Reference
[General Utilities]

#include <text-match.h>

List of all members.


Detailed Description

Encapsulates regular expression and efficient case-insensitive text matching.

Definition at line 33 of file text-match.h.


Public Types

enum  Type {
  CONTAINS, IS, BEGINS_WITH, ENDS_WITH,
  REGEX
}

Public Member Functions

void clear ()
const Descriptionget_state () const
int my_regexec (const StringView &) const
TextMatchoperator= (const TextMatch &that)
void set (const Description &d)
void set (const StringView &text, Type type, bool case_sensitive, bool negate=false)
bool test (const StringView &text) const
 TextMatch (const TextMatch &that)

Static Public Member Functions

static std::string create_regex (const StringView &, Type)
static bool validate_regex (const char *regex)

Public Attributes

std::string _impl_text
Type _impl_type
char * _skip

Private Types

enum  PcreState { NEED_COMPILE, COMPILED, ERR }

Private Attributes

PcreInfo_pcre_info
PcreState _pcre_state
Description state

Classes

struct  Description
class  PcreInfo

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

Generated by  Doxygen 1.6.0   Back to index