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)
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); }
Regex class.
Definition: Regex.h:98
int match(const char *str, int match_mode, int start, int len, MatchVec *matches)
int match(const char *str, int match_mode=0, MatchVec *matches=0)
Definition: Regex.h:156
const char * strerror(void) const
list< RegexMatch > MatchVec
Definition: Regex.h:106
bool compile(const char *pattern, int m=0)
int split(const char *str, list< String > &ls, int match_mode=0)
Linked list class.
Definition: List.h:160
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
RegexMode
Flags used for compile()
Definition: Regex.h:34
@ RX_DOLLAR_ENDONLY
$ not to match newline at end
Definition: Regex.h:37
@ RX_EXTENDED
extended features
Definition: Regex.h:35
@ RX_MULTILINE
^ and $ match newlines within data
Definition: Regex.h:39
RegexMatchMode
Flags used for match()
Definition: Regex.h:48
@ RX_MATCH_NOTEOL
Subject is not the end of a line.
Definition: Regex.h:51
@ RX_MATCH_ANCHORED
Match only at the first position.
Definition: Regex.h:49
RegexMatch class.
Definition: Regex.h:65
int length
Definition: Regex.h:69
int offset
Definition: Regex.h:67