Mercurial > hg > Applications > Grep
comparison regexParser/cerium/CeriumMain.cc @ 293:948428caf616
NFA maximum match worked
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 02 Feb 2016 10:38:45 +0900 |
parents | 868f01f1ba8e |
children | 63213964502a |
comparison
equal
deleted
inserted
replaced
292:868f01f1ba8e | 293:948428caf616 |
---|---|
32 tsv.current = tsv.tg->stateStart->tState; | 32 tsv.current = tsv.tg->stateStart->tState; |
33 if (tsv.matchEnd) { | 33 if (tsv.matchEnd) { |
34 ResultPtr r = NEW(Result); | 34 ResultPtr r = NEW(Result); |
35 r->continued = false; | 35 r->continued = false; |
36 r->begin = tsv.matchBegin; | 36 r->begin = tsv.matchBegin; |
37 r->end = tsv.buff.buffptr; | 37 r->end = tsv.matchEnd; |
38 *tsv.blk->resultEnd = r; | 38 *tsv.blk->resultEnd = r; |
39 r->next = NULL; | 39 r->next = NULL; |
40 tsv.blk->resultEnd = &r->next; | 40 tsv.blk->resultEnd = &r->next; |
41 tsv.matchEnd=NULL; | 41 tsv.matchEnd=NULL; |
42 } | 42 } |