comparison regexParser/threadedSearch.cc @ 278:99d635926ef3

ceriumCreateAnyState implemented
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Sat, 30 Jan 2016 21:19:05 +0900
parents 7b4bcc7b5ae6
children b74e3b4b11d7
comparison
equal deleted inserted replaced
277:7b4bcc7b5ae6 278:99d635926ef3
83 } 83 }
84 84
85 void tSearch(TSValue tsv) { 85 void tSearch(TSValue tsv) {
86 next: while (tsv.buff.buffptr < tsv.buff.buffend) { 86 next: while (tsv.buff.buffptr < tsv.buff.buffend) {
87 unsigned char c = *tsv.buff.buffptr++; 87 unsigned char c = *tsv.buff.buffptr++;
88 // printState(tsv.current->state);
88 for (int i = 0; i < tsv.current->ccvSize; i++) { 89 for (int i = 0; i < tsv.current->ccvSize; i++) {
89 CCVPtr ccv = &tsv.current->ccv[i]; 90 CCVPtr ccv = &tsv.current->ccv[i];
90 if (c<ccv->begin) { 91 if (c<ccv->begin) {
91 tsv = tsv.current->stateSkip(tsv); 92 tsv = tsv.current->stateSkip(tsv);
92 goto next; 93 goto next;