2#define __DCL_REGEX_H__ 20041119
4#ifndef __DCL_CONFIG_H__
7#ifndef __DCL_EXCEPTION_H__
10#ifndef __DCL_STRING_H__
57 size_t size()
const {
return __size; }
66 Regex(
const wchar_t* _pattern,
size_t _n,
unsigned int _flags = 0)
69 void compile(const
wchar_t* _pattern,
size_t _n,
unsigned int _flags = 0)
72 bool search(const
wchar_t* _begin, const
wchar_t* _end,
unsigned int _flags = 0)
76 const
wchar_t* _begin, const
wchar_t* _end,
77 MatchResults& _results,
unsigned int _flags = 0
81 const
wchar_t* _begin, const
wchar_t* _end,
unsigned int _flags
85 const
wchar_t* _begin, const
wchar_t* _end,
86 MatchResults& _results,
unsigned int _flags = 0
89 Regex(const String& _pattern,
unsigned int _flags = 0)
92 void compile(const String& _pattern,
unsigned int _flags = 0)
95 bool search(const String& _string,
unsigned int _flags = 0)
98 bool search(const String& _string, MatchResults& _results,
unsigned int _flags = 0)
101 bool match(const String& _string,
unsigned int _flags = 0)
104 bool match(const String& _string, MatchResults& _results,
unsigned int _flags = 0)
108 const String& _string,
109 const String& _replacement,
110 size_t _limit = (
size_t)-1
114 const
wchar_t* _begin, const
wchar_t* _end,
115 StringArray& _results,
116 size_t _limit = (
size_t)-1
120 const String& _string,
121 StringArray& _results,
122 size_t _limit = (
size_t)-1
126 const
wchar_t* _regex,
127 const
wchar_t* _string,
139 const String& _pattern,
143 compile(_pattern.data(), _pattern.length(), _flags);
147 const String& _string,
152 _string.data(), _string.data() + _string.length(),
163 _string.data(), _string.data() + _string.length(),
169 const String& _string,
174 _string.data(), _string.data() + _string.length(),
185 _string.data(), _string.data() + _string.length(),
191 const String& _string,
192 StringArray& _results,
197 _string.data(), _string.data() + _string.length(),
#define DECLARE_CLASSINFO(class_name)
virtual String toString() const
Exception(Exception *_cause=NULL)
size_t split(const wchar_t *_begin, const wchar_t *_end, StringArray &_results, size_t _limit=(size_t) -1) __DCL_THROWS1(RegexException *)
bool search(const wchar_t *_begin, const wchar_t *_end, unsigned int _flags=0) __DCL_THROWS1(RegexException *)
bool match(const wchar_t *_begin, const wchar_t *_end, unsigned int _flags) __DCL_THROWS1(RegexException *)
void compile(const wchar_t *_pattern, size_t _n, unsigned int _flags=0) __DCL_THROWS1(RegexException *)