Lines Matching refs:cp
483 const char* cp; in getPathLeaf() local
486 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf()
487 if (cp == nullptr) in getPathLeaf()
490 return String8(cp+1); in getPathLeaf()
495 const char* cp; in getPathDir() local
498 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir()
499 if (cp == nullptr) in getPathDir()
502 return String8(str, cp - str); in getPathDir()
507 const char* cp; in walkPath() local
511 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath()
512 if (cp == buf) { in walkPath()
515 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath()
518 if (cp == nullptr) { in walkPath()
524 String8 res(buf, cp-buf); in walkPath()
525 if (outRemains) *outRemains = String8(cp+1); in walkPath()