Lines Matching defs:cp
535 const char* cp;
538 cp = strrchr(buf, OS_PATH_SEPARATOR);
539 if (cp == NULL)
542 return String8(cp+1);
547 const char* cp;
550 cp = strrchr(str, OS_PATH_SEPARATOR);
551 if (cp == NULL)
554 return String8(str, cp - str);
559 const char* cp;
563 cp = strchr(buf, OS_PATH_SEPARATOR);
564 if (cp == buf) {
567 cp = strchr(buf, OS_PATH_SEPARATOR);
570 if (cp == NULL) {
576 String8 res(buf, cp-buf);
577 if (outRemains) *outRemains = String8(cp+1);