Lines Matching refs:path
8 /*! A simple class wrapping a path. Has a fixed-sized buffer. */
45 KPath::KPath(const char* path, int32 flags, size_t bufferSize)
55 SetTo(path, flags, bufferSize);
80 KPath::SetTo(const char* path, int32 flags, size_t bufferSize)
95 fIsNull = path == NULL;
97 if (path != NULL || !fLazy) {
103 return SetPath(path, flags);
138 /*! \brief Sets the buffer to \a path.
145 KPath::SetPath(const char* path, int32 flags)
147 if (path == NULL && fLazy && fBuffer == NULL) {
163 if (path != NULL) {
165 // normalize path
166 status_t status = _Normalize(path,
171 // don't normalize path
172 size_t length = strlen(path);
176 memcpy(fBuffer, path, length + 1);
339 // if our current path is empty, we just copy the supplied one
340 // compute the result path len
348 // compose the result path
382 KPath::operator=(const char* path)
384 SetPath(path);
402 KPath::operator==(const char* path) const
405 return path == NULL;
407 return path != NULL && strcmp(fBuffer, path) == 0;
419 KPath::operator!=(const char* path) const
421 return !(*this == path);
461 KPath::_Normalize(const char* path, bool traverseLeafLink)
463 status_t error = vfs_normalize_path(path, fBuffer, fBufferSize,
468 // path -- unset it completely to avoid weird problems.