Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_RegExp Class Reference

#include <regexp.h>

List of all members.

Public Types

enum  CompileFlags {
  compile_anchored = 1, compile_auto_callout = 2, compile_caseless = 4, compile_dollar_endonly = 8,
  compile_dot_all = 16, compile_extended = 32, compile_extra = 64, compile_multi_line = 128,
  compile_no_auto_capture = 256, compile_ungreedy = 512, compile_utf8 = 1024, compile_no_utf8_check = 2048
}
 Attributes:. More...
enum  SearchFlags {
  search_anchored = 1, search_not_bol = 2, search_not_eol = 4, search_not_empty = 8,
  search_no_utf8_check = 16, search_partial = 32
}

Public Member Functions

 CL_RegExp (const char *expression, int compile_flags=0, bool study=false)
 Construction:.
 CL_RegExp (const CL_StringA &expression, int compile_flags=0, bool study=false)
 ~CL_RegExp ()
int get_string_number (const char *name) const
int get_string_number (const CL_StringA &name) const
CL_RegExpMatch search (const char *subject, int length, int start_offset=0, int search_flags=0) const
 Operations:.
CL_RegExpMatch search (const CL_StringA &subject, int start_offset=0, int search_flags=0) const
void search (const char *subject, int length, int start_offset, int search_flags, CL_RegExpMatch &result) const
void search (const CL_StringA &subject, int length, int start_offset, int search_flags, CL_RegExpMatch &result) const

Private Member Functions

void compile (const char *expression, int compile_flags, bool study)
 Implementation:.

Private Attributes

pcre * code
pcre_extra * extra


Member Enumeration Documentation

enum CL_RegExp::CompileFlags
 

Attributes:.

Enumeration values:
compile_anchored 
compile_auto_callout 
compile_caseless 
compile_dollar_endonly 
compile_dot_all 
compile_extended 
compile_extra 
compile_multi_line 
compile_no_auto_capture 
compile_ungreedy 
compile_utf8 
compile_no_utf8_check 

Definition at line 47 of file regexp.h.

enum CL_RegExp::SearchFlags
 

Enumeration values:
search_anchored 
search_not_bol 
search_not_eol 
search_not_empty 
search_no_utf8_check 
search_partial 

Definition at line 63 of file regexp.h.


Constructor & Destructor Documentation

CL_RegExp::CL_RegExp const char *  expression,
int  compile_flags = 0,
bool  study = false
 

Construction:.

Definition at line 37 of file regexp.cpp.

References compile().

CL_RegExp::CL_RegExp const CL_StringA expression,
int  compile_flags = 0,
bool  study = false
 

Definition at line 43 of file regexp.cpp.

References compile().

CL_RegExp::~CL_RegExp  ) 
 

Definition at line 49 of file regexp.cpp.

References code, and extra.


Member Function Documentation

void CL_RegExp::compile const char *  expression,
int  compile_flags,
bool  study
[private]
 

Implementation:.

Definition at line 191 of file regexp.cpp.

References code, compile_anchored, compile_auto_callout, compile_caseless, compile_dollar_endonly, compile_dot_all, compile_extended, compile_extra, compile_multi_line, compile_no_auto_capture, compile_no_utf8_check, compile_ungreedy, compile_utf8, extra, CL_StringFormat::get_result(), and CL_StringFormat::set_arg().

Referenced by CL_RegExp().

int CL_RegExp::get_string_number const CL_StringA name  )  const
 

Definition at line 65 of file regexp.cpp.

References get_string_number().

int CL_RegExp::get_string_number const char *  name  )  const
 

Definition at line 60 of file regexp.cpp.

References code.

Referenced by get_string_number().

void CL_RegExp::search const CL_StringA subject,
int  length,
int  start_offset,
int  search_flags,
CL_RegExpMatch result
const
 

Definition at line 178 of file regexp.cpp.

References search().

void CL_RegExp::search const char *  subject,
int  length,
int  start_offset,
int  search_flags,
CL_RegExpMatch result
const
 

Definition at line 94 of file regexp.cpp.

References code, extra, search_anchored, search_no_utf8_check, search_not_bol, search_not_empty, search_not_eol, search_partial, CL_RegExpMatch::set_captures_count(), CL_RegExpMatch::set_partial_match(), CL_RegExpMatch::set_vector_size(), and TEXT.

CL_RegExpMatch CL_RegExp::search const CL_StringA subject,
int  start_offset = 0,
int  search_flags = 0
const
 

Definition at line 84 of file regexp.cpp.

References search().

CL_RegExpMatch CL_RegExp::search const char *  subject,
int  length,
int  start_offset = 0,
int  search_flags = 0
const
 

Operations:.

Definition at line 73 of file regexp.cpp.

Referenced by CL_MimePart::get_content_description(), CL_MimePart::get_content_id(), CL_MimePart::get_content_transfer_encoding(), CL_MimePart::get_content_type(), CL_MimePart::get_content_type_parameter_value(), CL_MimePart::get_content_type_parameters(), CL_MimePart::get_header_line(), CL_MimePart::get_header_lines_count(), CL_MimePart::has_content_description(), CL_MimePart::has_content_id(), CL_MimePart::has_content_type(), CL_MimePart::has_content_type_parameter(), CL_MimePart::load(), and search().


Member Data Documentation

pcre* CL_RegExp::code [private]
 

Definition at line 109 of file regexp.h.

Referenced by compile(), get_string_number(), search(), and ~CL_RegExp().

pcre_extra* CL_RegExp::extra [private]
 

Definition at line 111 of file regexp.h.

Referenced by compile(), search(), and ~CL_RegExp().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:18 2005 for npcore by  doxygen 1.4.1