mirror of
https://github.com/boostorg/regex.git
synced 2025-07-23 17:17:22 +02:00
Changed to make use of iterators and not strings where possible.
[SVN r20229]
This commit is contained in:
@ -132,7 +132,7 @@ public:
|
|||||||
if(N+1 < (int)subs.size())
|
if(N+1 < (int)subs.size())
|
||||||
{
|
{
|
||||||
++N;
|
++N;
|
||||||
result =((subs[N] == -1) ? value_type(what.prefix().str()) : value_type(what[subs[N]].str()));
|
result =((subs[N] == -1) ? value_type(what.prefix().first, what.prefix().second) : value_type(what[subs[N]].first, what[subs[N]].second));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if(what.prefix().first != what[0].second)
|
if(what.prefix().first != what[0].second)
|
||||||
@ -141,7 +141,7 @@ public:
|
|||||||
if(regex_search(last_end, end, what, *pre, ((what[0].first == what[0].second) ? flags | regex_constants::match_not_initial_null : flags)))
|
if(regex_search(last_end, end, what, *pre, ((what[0].first == what[0].second) ? flags | regex_constants::match_not_initial_null : flags)))
|
||||||
{
|
{
|
||||||
N =0;
|
N =0;
|
||||||
result =((subs[N] == -1) ? value_type(what.prefix().str()) : value_type(what[subs[N]].str()));
|
result =((subs[N] == -1) ? value_type(what.prefix().first, what.prefix().second) : value_type(what[subs[N]].first, what[subs[N]].second));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if((last_end != end) && (subs[0] == -1))
|
else if((last_end != end) && (subs[0] == -1))
|
||||||
|
Reference in New Issue
Block a user