Lines Matching refs:path
6 /** A simple class wrapping a path. Has a fixed-sized buffer. */
33 KPath::KPath(const char* path, bool normalize, size_t bufferSize)
40 SetTo(path, normalize, bufferSize);
62 KPath::SetTo(const char* path, bool normalize, size_t bufferSize,
86 return SetPath(path, normalize, traverseLeafLink);
110 KPath::SetPath(const char* path, bool normalize, bool traverseLeafLink)
115 if (path != NULL) {
117 // normalize path
118 status_t error = vfs_normalize_path(path, fBuffer, fBufferSize,
127 // don't normalize path
128 size_t length = strlen(path);
132 memcpy(fBuffer, path, length + 1);
270 // if our current path is empty, we just copy the supplied one
271 // compute the result path len
279 // compose the result path
300 // vfs_normalize_path() might have screwed up the previous path -- unset
320 KPath::operator=(const char* path)
322 SetTo(path);
340 KPath::operator==(const char* path) const
343 return (!path);
345 return path && !strcmp(fBuffer, path);
357 KPath::operator!=(const char* path) const
359 return !(*this == path);