Back to index

courier  0.68.2
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
Search Class Reference

#include <search.h>

Collaboration diagram for Search:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Search ()
 ~Search ()
int find (Message &, MessageInfo &, const char *, const char *, Buffer *)
int find (const char *, const char *, const char *, Buffer *)

Public Attributes

double score

Private Member Functions

int init (const char *, const char *)
void cleanup ()
int findinline (Message &, const char *, Buffer *)
int findinsection (Message &, const char *, Buffer *)
void init_match_vars (ReMatch &, Buffer *)
void init_match_vars (const char *, int, int *, Buffer *)

Private Attributes

pcre * pcre_regexp
pcre_extra * pcre_regexp_extra
int * pcre_vectors
size_t pcre_vector_count
Re regexp
Buffer current_line
Buffer next_line
int match_header
int match_body
double weight1
double weight2
int scoring_match

Detailed Description

Definition at line 44 of file search.h.


Constructor & Destructor Documentation

Search::Search ( ) [inline]

Definition at line 67 of file search.h.

Search::~Search ( ) [inline]

Definition at line 69 of file search.h.

{ cleanup(); }

Here is the call graph for this function:


Member Function Documentation

void Search::cleanup ( ) [private]

Here is the caller graph for this function:

int Search::find ( Message ,
MessageInfo ,
const char *  ,
const char *  ,
Buffer  
)
int Search::find ( const char *  ,
const char *  ,
const char *  ,
Buffer  
)
int Search::findinline ( Message ,
const char *  ,
Buffer  
) [private]
int Search::findinsection ( Message ,
const char *  ,
Buffer  
) [private]
int Search::init ( const char *  ,
const char *   
) [private]
void Search::init_match_vars ( ReMatch ,
Buffer  
) [private]
void Search::init_match_vars ( const char *  ,
int  ,
int *  ,
Buffer  
) [private]

Member Data Documentation

Definition at line 52 of file search.h.

int Search::match_body [private]

Definition at line 55 of file search.h.

int Search::match_header [private]

Definition at line 55 of file search.h.

Definition at line 53 of file search.h.

pcre* Search::pcre_regexp [private]

Definition at line 46 of file search.h.

pcre_extra* Search::pcre_regexp_extra [private]

Definition at line 47 of file search.h.

size_t Search::pcre_vector_count [private]

Definition at line 49 of file search.h.

int* Search::pcre_vectors [private]

Definition at line 48 of file search.h.

Re Search::regexp [private]

Definition at line 51 of file search.h.

double Search::score

Definition at line 64 of file search.h.

int Search::scoring_match [private]

Definition at line 57 of file search.h.

double Search::weight1 [private]

Definition at line 56 of file search.h.

double Search::weight2 [private]

Definition at line 56 of file search.h.


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