Lines Matching refs:cp

187 	register const char *cp;
192 if(*(cp=oldsp) == 0)
200 while(*sp && (savesp==sp || *sp != *cp))
214 for(;*cp;cp++)
216 if(*cp != *sp++)
219 if(*cp==0)
223 cp = oldsp;
303 register const char *cp = string, *op;
306 if(!cp)
309 state = ((c= mbchar(cp))==0);
312 while((c=mbchar(cp)),isaname(c));
317 if(*cp==0)
319 if(*cp=='=')
320 cp++;
321 c = cp - string;
323 string = cp;
324 c = mbchar(cp);
329 for(;c;c= mbchar(cp))
344 if(c = --cp - string)
352 cp = string;
354 while(op = cp, c= mbchar(cp))
356 while(op = cp, c= *(unsigned char*)cp++)
389 while(op<cp)
409 stakwrite(op, cp-op);
426 register const char *cp = string;
437 if (!cp || !*cp || !single && !fold || fold && strlen(string) < fold)
438 return sh_fmtq(cp);
443 vp = cp + 1;
448 bp = cp;
449 while ((!n || n-- > 0) && (c = mbchar(cp)))
468 stakwrite(bp, cp - bp);
469 bp = cp;
470 vp = cp + 1;
473 else if ((c == '#' || c == '~') && cp == vp || c == ']' || c != ':' && (c = sh_lexstates[ST_NORM][c]) && c != S_EPAT)
480 cp = bp;
483 while (c = mbchar(cp))
510 if (*cp == 'n')
542 cp = bp;
553 bp = cp;
561 cp = bp;
563 while (c = mbchar(cp))
570 stakwrite(bp, --cp - bp);
571 bp = cp;
574 else if (n == 1 && *cp == '\'')
577 stakwrite(bp, --cp - bp);
578 bp = cp;
583 stakwrite(bp, cp - bp - 1);
584 bp = cp;
594 stakwrite(bp, cp - bp - 1);
599 cp = bp;
600 while (c = mbchar(cp))
605 stakwrite(bp, --cp - bp);
606 bp = cp;
610 stakwrite(bp, cp - bp - 1);
613 stakwrite(bp, cp - bp);
628 register const char *cp=string;
632 while(c = mbchar(cp))
635 return(cp-string);
638 return(cp-string);
663 register unsigned char *cp = (unsigned char*)str;
664 register unsigned char *v = cp;
666 if(c=mbchar(cp),isaletter(c))
667 while(c=mbchar(cp),isaname(c));
668 if(c==']' && (!last || ((char*)cp==last)))
671 while(v < cp)