Lines Matching refs:pathname_
121 if (String::EndsWithCaseInsensitive(pathname_, dot_extension)) { in RemoveExtension()
122 return FilePath(pathname_.substr( in RemoveExtension()
123 0, pathname_.length() - dot_extension.length())); in RemoveExtension()
206 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
212 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
253 return pathname_.length() == 3 && IsAbsolutePath(); in IsRootDirectory()
255 return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]); in IsRootDirectory()
261 const char* const name = pathname_.c_str(); in IsAbsolutePath()
263 return pathname_.length() >= 3 && in IsAbsolutePath()
296 return !pathname_.empty() && in IsDirectory()
297 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); in IsDirectory()
308 if (pathname_.length() == 0 || this->DirectoryExists()) { in CreateDirectoriesRecursively()
327 int result = _mkdir(pathname_.c_str()); in CreateFolder()
329 int result = mkdir(pathname_.c_str(), 0777); in CreateFolder()
343 ? FilePath(pathname_.substr(0, pathname_.length() - 1)) in RemoveTrailingPathSeparator()
352 if (pathname_.c_str() == NULL) { in Normalize()
353 pathname_ = ""; in Normalize()
356 const char* src = pathname_.c_str(); in Normalize()
357 char* const dest = new char[pathname_.length() + 1]; in Normalize()
359 memset(dest_ptr, 0, pathname_.length() + 1); in Normalize()
377 pathname_ = dest; in Normalize()