Lines Matching refs:cp

183 	register const char *cp;
188 if(*(cp=oldsp) == 0)
196 while(*sp && (savesp==sp || *sp != *cp))
210 for(;*cp;cp++)
212 if(*cp != *sp++)
215 if(*cp==0)
219 cp = oldsp;
298 register const char *cp = string;
301 if(!cp)
304 while((c=mbchar(cp)),isaname(c));
308 stakwrite(string,cp-string);
311 string = cp;
312 while(c=mbchar(cp))
316 stakwrite(string,cp-string);
317 string = cp;
321 if(--cp>string)
322 stakwrite(string,cp-string);
334 register const char *cp = string, *op;
337 if(!cp)
340 state = ((c= mbchar(cp))==0);
343 while((c=mbchar(cp)),isaname(c));
348 if(*cp==0)
350 if(*cp=='=')
351 cp++;
352 c = cp - string;
354 string = cp;
355 c = mbchar(cp);
360 for(;c;c= mbchar(cp))
375 if(c = --cp - string)
384 cp = string;
386 while(op = cp, c= mbchar(cp))
388 while(op = cp, c= *(unsigned char*)cp++)
423 cp = op+1;
426 if(mbwide() && ((cp-op)>1))
448 stakwrite(op, cp-op);
465 register const char *cp = string;
477 return sh_fmtcsv(cp);
478 if (!cp || !*cp || !fold || fold && strlen(string) < fold)
479 return sh_fmtq(cp);
484 vp = cp + 1;
489 bp = cp;
490 while ((!n || n-- > 0) && (c = mbchar(cp)))
509 stakwrite(bp, cp - bp);
510 bp = cp;
511 vp = cp + 1;
514 else if ((c == '#' || c == '~') && cp == vp || c == ']' || c != ':' && (c = sh_lexstates[ST_NORM][c]) && c != S_EPAT)
521 cp = bp;
524 while (c = mbchar(cp))
551 if (*cp == 'n')
583 cp = bp;
594 bp = cp;
602 cp = bp;
604 while (c = mbchar(cp))
611 stakwrite(bp, --cp - bp);
612 bp = cp;
615 else if (n == 1 && *cp == '\'')
618 stakwrite(bp, --cp - bp);
619 bp = cp;
624 stakwrite(bp, cp - bp - 1);
625 bp = cp;
635 stakwrite(bp, cp - bp - 1);
640 cp = bp;
641 while (c = mbchar(cp))
646 stakwrite(bp, --cp - bp);
647 bp = cp;
651 stakwrite(bp, cp - bp - 1);
654 stakwrite(bp, cp - bp);
669 register const char *cp=string;
673 while(c = mbchar(cp))
676 return(cp-string);
679 return(cp-string);
704 register unsigned char *cp = (unsigned char*)str;
705 register unsigned char *v = cp;
707 if(c=mbchar(cp),isaletter(c))
708 while(c=mbchar(cp),isaname(c));
709 if(c==']' && (!last || ((char*)cp==last)))
712 while(v < cp)