changeset 304:c48a8671ce34

fix parallel search first match
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Feb 2016 12:24:47 +0900
parents cc770cd8d000
children d015b2b9758f
files regexParser/TODO regexParser/cerium/ppe/Exec.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/regexParser/TODO	Mon Feb 08 11:56:13 2016 +0900
+++ b/regexParser/TODO	Mon Feb 08 12:24:47 2016 +0900
@@ -1,3 +1,7 @@
+Mon Feb  8 12:13:08 JST 2016
+
+    word の処理をする前に、CharClassをobjectにする方が良いか? CbCっぽくはなくなるが。
+
 Sat Feb  6 19:50:04 JST 2016
 
     ちょっとあれだけど、
--- a/regexParser/cerium/ppe/Exec.cc	Mon Feb 08 11:56:13 2016 +0900
+++ b/regexParser/cerium/ppe/Exec.cc	Mon Feb 08 12:24:47 2016 +0900
@@ -16,9 +16,9 @@
     ResultPtr result = NULL;
     tsv.blk->resultEnd = &result;
     tsv.blk->blockBegin = tsv.current;
+    addResult(tsv,true,buff.buff,buff.buffend);  // entire buffer
     tsv = tSearch(tsv);
     tsv.blk->blockEnd = tsv.current;
-    addResult(tsv,true,buff.buff,buff.buffend);  // entire buffer
     if (tsv.blk->blockEnd->state->bitState.bitContainer != 1) {
         if (tsv.matchBegin != tsv.buff.buffptr) {
             // partial match case at block end.