You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns a pair of pointer and length of the captured match for n > 0 capture index or <text(),size() for n == 0.
151
155
virtual std::pair<constchar*,size_t> operator[](size_t n) ///< nth capture index > 0 or 0
152
156
/// @returns pair.
153
-
const
157
+
const REFLEX_OVERRIDE
154
158
{
155
159
if (n == 0)
156
160
return std::pair<constchar*,size_t>(txt_, len_);
@@ -161,6 +165,7 @@ class BoostMatcher : public PatternMatcher<boost::regex> {
161
165
/// Returns the group capture identifier containing the group capture index >0 and name (or NULL) of a named group capture, or (1,NULL) by default
162
166
virtual std::pair<size_t,constchar*> group_id()
163
167
/// @returns a pair of size_t and string
168
+
REFLEX_OVERRIDE
164
169
{
165
170
grp_ = 1;
166
171
if (itr_ == fin_ || (*itr_).size() <= 1)
@@ -172,6 +177,7 @@ class BoostMatcher : public PatternMatcher<boost::regex> {
172
177
/// Returns the next group capture identifier containing the group capture index >0 and name (or NULL) of a named group capture, or (0,NULL) when no more groups matched
@@ -191,12 +196,14 @@ class Matcher : public PatternMatcher<reflex::Pattern> {
191
196
/// Returns the group capture identifier containing the group capture index >0 and name (or NULL) of a named group capture, or (1,NULL) by default
192
197
virtual std::pair<size_t,constchar*> group_id()
193
198
/// @returns a pair of size_t and string
199
+
REFLEX_OVERRIDE
194
200
{
195
201
return std::pair<size_t,constchar*>(accept(), static_cast<constchar*>(NULL)); // cast to appease MSVC 2010
196
202
}
197
203
/// Returns the next group capture identifier containing the group capture index >0 and name (or NULL) of a named group capture, or (0,NULL) when no more groups matched
@@ -215,7 +218,7 @@ class PCRE2Matcher : public PatternMatcher<std::string> {
215
218
/// Returns a pair of pointer and length of the captured match for n > 0 capture index or <text(),size() for n == 0.
216
219
virtual std::pair<constchar*,size_t> operator[](size_t n) ///< nth capture index > 0 or 0
217
220
/// @returns pair.
218
-
const
221
+
const REFLEX_OVERRIDE
219
222
{
220
223
if (n == 0)
221
224
return std::pair<constchar*,size_t>(txt_, len_);
@@ -230,6 +233,7 @@ class PCRE2Matcher : public PatternMatcher<std::string> {
230
233
/// Returns the group capture identifier containing the group capture index >0 and name (or NULL) of a named group capture, or (1,NULL) by default
231
234
virtual std::pair<size_t,constchar*> group_id()
232
235
/// @returns a pair of size_t and string
236
+
REFLEX_OVERRIDE
233
237
{
234
238
grp_ = 1;
235
239
if (dat_ == NULL || pcre2_get_ovector_count(dat_) <= 1)
@@ -242,6 +246,7 @@ class PCRE2Matcher : public PatternMatcher<std::string> {
242
246
/// Returns the next group capture identifier containing the group capture index >0 and name (or NULL) of a named group capture, or (0,NULL) when no more groups matched
0 commit comments