Lines Matching refs:cp
165 register unsigned char* cp;
187 cp = buff = endbuff = 0;
190 if (cp >= endbuff || (n = mb2wc(x, cp, endbuff-cp)) < 0)
192 if ((o = endbuff-cp) < sizeof(side))
197 memcpy(side, cp, o);
202 cp = side + o;
213 memcpy(cp, buff, c);
215 cp = side;
216 x = mbchar(cp);
217 if ((cp-side) < o)
219 cp = buff;
220 nchars += (cp-side) - 1;
223 cp = buff + (cp-side) - o;
227 cp++;
234 cp += n ? n : 1;
259 while ((cp = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0)
262 endbuff = cp + c;
268 if (*cp++ == '\n')
270 if (cp > endbuff)
278 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0)
286 if ((c = type[*cp]) && !lasttype)
291 if (!lasttype && type[*cp])
293 lastchar = cp[--c];
294 *(endbuff = cp+c) = '\n';
306 if (cp > endbuff)
309 if (*cp != '\n')
311 cp++;
313 } while (c = type[*cp++]);
315 while (!(c = type[*cp++]));
319 if ((cp -= 2) >= buff)
320 c = type[*cp];
348 while ((cp = buff = (unsigned char*)sfreserve(fd, SF_UNBOUND, 0)) && (c = sfvalue(fd)) > 0)
352 start = cp-lineoff;
358 if((c = type[*cp]) && !lasttype)
364 lastchar = cp[--c];
365 endbuff = cp+c;
366 cp[c] = '\n';
372 if(!lasttype && spc(type[*cp]))
385 if (cp > endbuff)
389 if((cp-start)-adjust > longest)
390 longest = (cp-start)-adjust-1;
391 start = cp;
397 } while (spc(c = type[*cp++]));
418 if(skip==2 && (cp[-1]&0xc)==0 && (state=(cp[-1]&0x3)))
419 oldc = *cp;
420 else if(xspace && cp[-1]==0xc2)
423 oldc = *cp;
439 oldc = *cp;
442 } while (mbc(c = type[*cp++]));
446 if(eol(c) && (cp > endbuff))
454 c=type[*cp++];
455 if(eol(c) && (cp > endbuff))
472 while(!(c = type[*cp++]));
478 lineoff = cp-start;
479 if((cp -= 2) >= buff)
480 c = type[*cp];