Closed GoogleCodeExporter closed 9 years ago
Aligner tests shown issue with the first solution (e.g. for pattern like
"1.2.3. ". A better one:
int start = 0;
int prevStart = -1;
while (( start != prevStart ) && m.find(start) ) {
int n = m.start()+m.group(1).length();
// Set next start
prevStart = start;
start = n;
...
It passes all existing tests and additional ones.
I'll push this soon.
Original comment by yves.sav...@gmail.com
on 7 Dec 2014 at 4:37
This issue was closed by revision af5c6a381dcc.
Original comment by yves.sav...@gmail.com
on 7 Dec 2014 at 4:39
Original issue reported on code.google.com by
yves.sav...@gmail.com
on 5 Dec 2014 at 4:07