ClanLib
2.3.7
|
Regular Expression. More...
#include <regexp.h>
Public Member Functions | |
Construction | |
CL_RegExp (const char *expression, int compile_flags=0, bool study=false) | |
Constructs a RegExp. More... | |
CL_RegExp (const CL_StringRef8 &expression, int compile_flags=0, bool study=false) | |
Constructs a RegExp. More... | |
~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. More... | |
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 |
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. More... | |
int | get_string_number (const CL_StringRef8 &name) const |
Get string number. More... | |
Regular Expression.
CL_RegExp::CL_RegExp | ( | const char * | expression, |
int | compile_flags = 0 , |
||
bool | study = false |
||
) |
Constructs a RegExp.
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.
expression | = String Ref8 |
compile_flags | = value |
study | = bool |
CL_RegExp::~CL_RegExp | ( | ) |
int CL_RegExp::get_string_number | ( | const char * | name) | const |
Get string number.
name | = char |
int CL_RegExp::get_string_number | ( | const CL_StringRef8 & | name) | const |
Get string number.
name | = String Ref8 |
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.
CL_RegExpMatch CL_RegExp::search | ( | const CL_StringRef8 & | subject, |
int | start_offset = 0 , |
||
int | search_flags = 0 |
||
) | const |
void CL_RegExp::search | ( | const char * | subject, |
int | length, | ||
int | start_offset, | ||
int | search_flags, | ||
CL_RegExpMatch & | result | ||
) | const |
void CL_RegExp::search | ( | const CL_StringRef8 & | subject, |
int | start_offset, | ||
int | search_flags, | ||
CL_RegExpMatch & | result | ||
) | const |