Lines Matching refs:lastSlash
33 const char *lastSlash = uprv_strrchr(filename, U_FILE_SEP_CHAR); in get_dirname() local
34 if (lastSlash != NULL) { in get_dirname()
35 lastSlash++; in get_dirname()
38 if(lastSlash>filename) { in get_dirname()
39 uprv_strncpy(dirname, filename, (lastSlash - filename)); in get_dirname()
40 *(dirname + (lastSlash - filename)) = '\0'; in get_dirname()
52 const char *lastSlash = uprv_strrchr(filename, U_FILE_SEP_CHAR); in get_basename() local
53 if (lastSlash != NULL) { in get_basename()
54 lastSlash++; in get_basename()
58 if(lastSlash>filename) { in get_basename()
59 uprv_strcpy(basename, lastSlash); in get_basename()