21 #ifndef __EDELIB_REGEX_H__
22 #define __EDELIB_REGEX_H__
36 RX_CASELESS = (1 << 2),
40 RX_UNGREEDY = (1 << 6)
50 RX_MATCH_NOTBOL = (1 << 2),
52 RX_MATCH_NOTEMPTY = (1 << 4)
125 bool compile(
const char* pattern,
int m = 0);
136 operator bool(
void)
const;
150 int match(
const char* str,
int match_mode,
int start,
int len,
MatchVec* matches);
157 {
return match(str, match_mode, 0, -1, matches); }
167 int split(
const char* str,
list<String>& ls,
int match_mode = 0);
172 const char* strerror(
void)
const;
int match(const char *str, int match_mode=0, MatchVec *matches=0)
Definition: Regex.h:156
Match only at the first position.
Definition: Regex.h:49
list< RegexMatch > MatchVec
Definition: Regex.h:106
^ and $ match newlines within data
Definition: Regex.h:39
$ not to match newline at end
Definition: Regex.h:37
Linked list class.
Definition: List.h:160
RegexMode
Flags used for compile()
Definition: Regex.h:34
RegexMatchMode
Flags used for match()
Definition: Regex.h:48
RegexMatch class.
Definition: Regex.h:65
Subject is not the end of a line.
Definition: Regex.h:51
extended features
Definition: Regex.h:35
int offset
Definition: Regex.h:67
int length
Definition: Regex.h:69
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
Regex class.
Definition: Regex.h:98