CL_RegExp Class Reference
[clanRegExp Regular Expressions]

Regular Expression. More...

#include <regexp.h>

List of all members.

Attributes

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
}
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
}
int get_string_number (const char *name) const
 Get string number.
int get_string_number (const CL_StringRef8 &name) const
 Get string number.

Public Member Functions

Construction
 CL_RegExp (const char *expression, int compile_flags=0, bool study=false)
 Constructs a RegExp.
 CL_RegExp (const CL_StringRef8 &expression, int compile_flags=0, bool study=false)
 Constructs a RegExp.
 ~CL_RegExp ()
Operations
CL_RegExpMatch search (const char *subject, int length, int start_offset=0, int search_flags=0) const
 Match regular expression against a given subject string.
CL_RegExpMatch search (const CL_StringRef8 &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_StringRef8 &subject, int start_offset, int search_flags, CL_RegExpMatch &result) const


Detailed Description

Regular Expression.


Member Enumeration Documentation

enum CL_RegExp::CompileFlags
 

Enumerator:
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 

enum CL_RegExp::SearchFlags
 

Enumerator:
search_anchored 
search_not_bol 
search_not_eol 
search_not_empty 
search_no_utf8_check 
search_partial 


Constructor & Destructor Documentation

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

Constructs a RegExp.

Parameters:
expression = char
compile_flags = value
study = bool

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

Constructs a RegExp.

Parameters:
expression = String Ref8
compile_flags = value
study = bool

CL_RegExp::~CL_RegExp  ) 
 


Member Function Documentation

int CL_RegExp::get_string_number const CL_StringRef8 name  )  const
 

Get string number.

Parameters:
name = String Ref8
Returns:
int

int CL_RegExp::get_string_number const char *  name  )  const
 

Get string number.

Parameters:
name = char
Returns:
int

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

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

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

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

Match regular expression against a given subject string.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:40 2009 for ClanLib by  doxygen 1.4.6