Lines Matching refs:cp
517 const char* cp; in getPathLeaf() local
520 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf()
521 if (cp == nullptr) in getPathLeaf()
524 return String8(cp+1); in getPathLeaf()
529 const char* cp; in getPathDir() local
532 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir()
533 if (cp == nullptr) in getPathDir()
536 return String8(str, cp - str); in getPathDir()
541 const char* cp; in walkPath() local
545 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath()
546 if (cp == buf) { in walkPath()
549 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath()
552 if (cp == nullptr) { in walkPath()
558 String8 res(buf, cp-buf); in walkPath()
559 if (outRemains) *outRemains = String8(cp+1); in walkPath()