Lines Matching refs:cp
526 const char* cp;
529 cp = strrchr(buf, OS_PATH_SEPARATOR);
530 if (cp == NULL)
533 return String8(cp+1);
538 const char* cp;
541 cp = strrchr(str, OS_PATH_SEPARATOR);
542 if (cp == NULL)
545 return String8(str, cp - str);
550 const char* cp;
554 cp = strchr(buf, OS_PATH_SEPARATOR);
555 if (cp == buf) {
558 cp = strchr(buf, OS_PATH_SEPARATOR);
561 if (cp == NULL) {
567 String8 res(buf, cp-buf);
568 if (outRemains) *outRemains = String8(cp+1);