Lines Matching refs:scan
67 size_t scsc, scan;
98 scan=0;len=0;
100 while(scan<newsize) {
110 for(scsc=scan+=len;scan<newsize;scan++) {
115 sai->SearchPrefix(new_buf + scan, newsize - scan, &len, &pos);
117 for(;scsc<scan+len && scsc+lastoffset<oldsize;scsc++)
124 if((scan+lastoffset<oldsize) &&
125 (old_buf[scan+lastoffset] == new_buf[scan]))
140 if((len!=oldscore) || (scan==newsize)) {
142 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) {
149 if(scan<newsize) {
151 for(i=1;(scan>=lastscan+i)&&(pos>=static_cast<uint64_t>(i));i++) {
152 if(old_buf[pos-i]==new_buf[scan-i]) s++;
157 if(lastscan+lenf>scan-lenb) {
158 overlap=(lastscan+lenf)-(scan-lenb);
163 if(new_buf[scan-lenb+i]==
174 (scan - lenb) - (lastscan + lenf),
178 lastscan=scan-lenb;
180 lastoffset=pos-scan;