Lines Matching defs:path
8 /*! A simple class wrapping a path. Has a fixed-sized buffer. */
39 KPath::KPath(const char* path, int32 flags, size_t bufferSize)
49 SetTo(path, flags, bufferSize);
74 KPath::SetTo(const char* path, int32 flags, size_t bufferSize)
90 fIsNull = path == NULL;
92 if (path != NULL || !fLazy) {
98 return SetPath(path, flags);
133 /*! \brief Sets the buffer to \a path.
140 KPath::SetPath(const char* path, int32 flags)
142 if (path == NULL && fLazy && fBuffer == NULL) {
158 if (path != NULL) {
160 // normalize path
161 status_t status = _Normalize(path,
166 // don't normalize path
167 size_t length = strlen(path);
171 memcpy(fBuffer, path, length + 1);
326 // if our current path is empty, we just copy the supplied one
327 // compute the result path len
335 // compose the result path
366 KPath::operator=(const char* path)
368 SetPath(path);
386 KPath::operator==(const char* path) const
389 return path == NULL;
391 return path != NULL && strcmp(fBuffer, path) == 0;
403 KPath::operator!=(const char* path) const
405 return !(*this == path);
426 KPath::_Normalize(const char* path, bool traverseLeafLink)
429 status_t error = normalizedPath.SetTo(path, NULL, true);