|
|
|
@ -232,12 +232,10 @@ match_context context(const boost::match_results<string::const_iterator> &match,
|
|
|
|
|
pos_before = std::find_first_of(pos_before, rend_before, |
|
|
|
|
whitespace.begin(), |
|
|
|
|
whitespace.end()); |
|
|
|
|
if (pos_before != rend_before) |
|
|
|
|
while (pos_before != rend_before |
|
|
|
|
&& helpers::is_whitespace(*pos_before)) |
|
|
|
|
{ |
|
|
|
|
while (helpers::is_whitespace(*pos_before)) |
|
|
|
|
{ |
|
|
|
|
++pos_before; |
|
|
|
|
} |
|
|
|
|
++pos_before; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -246,12 +244,9 @@ match_context context(const boost::match_results<string::const_iterator> &match,
|
|
|
|
|
pos_after = std::find_first_of(pos_after, end_after, |
|
|
|
|
whitespace.begin(), |
|
|
|
|
whitespace.end()); |
|
|
|
|
if (pos_after != end_after) |
|
|
|
|
while (pos_after != end_after && helpers::is_whitespace(*pos_after)) |
|
|
|
|
{ |
|
|
|
|
while (helpers::is_whitespace(*pos_after)) |
|
|
|
|
{ |
|
|
|
|
++pos_after; |
|
|
|
|
} |
|
|
|
|
++pos_after; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
words -= 1; |
|
|
|
|