Lines Matching defs:fullPath

39 	The value returned in \a fullPath is guaranteed to be > 0, i.e. the
44 \param fullPath The path to be parsed.
55 parse_path(const char *fullPath, int &dirEnd, int &leafStart, int &leafEnd)
58 if (!fullPath)
60 int pathLen = strlen(fullPath);
65 while (i >= 0 && fullPath[i] == '/')
69 // fullPath consists of slashes only
74 while (i >= 0 && fullPath[i] != '/')
78 // fullPath contains only one component
83 while (i >= 0 && fullPath[i] == '/')
86 if (dirEnd == 0) // => fullPath[0] == '/' (an absolute path)
95 The value returned in \a fullPath is guaranteed to be > 0, i.e. the
100 \param fullPath The path to be parsed.
111 parse_path(const char *fullPath, char *dirPath, char *leaf)
115 status_t error = parse_path(fullPath, dirEnd, leafStart, leafEnd);
124 strlcpy(dirPath, fullPath, dirEnd + 1);
126 strlcpy(leaf, fullPath + leafStart, leafEnd - leafStart + 1);
133 internal_parse_path(const char *fullPath, int &leafStart, int &leafEnd,
136 if (fullPath == NULL)
141 int len = strlen(fullPath);
156 if (fullPath[pos] != '/') {
164 if (fullPath[pos] == '/') {
179 \param fullPath the path name to be split
186 split_path(const char *fullPath, char *&path, char *&leaf)
188 return split_path(fullPath, &path, &leaf);
193 \param fullPath the path name to be split
200 split_path(const char *fullPath, char **path, char **leaf)
207 if (fullPath == NULL)
211 internal_parse_path(fullPath, leafStart, leafEnd, pathEnd);
218 if (fullPath[0] == '/') {
231 } else if (fullPath[0] == 0) {
246 // fullPath is just an entry name, no parent directories specified
265 memcpy(*path, fullPath, len);
272 memcpy(*leaf, fullPath + leafStart, len);