Lines Matching refs:pathname_
132 if (String::EndsWithCaseInsensitive(pathname_, dot_extension)) {
134 pathname_.substr(0, pathname_.length() - dot_extension.length()));
156 const auto& path = pathname_;
253 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str());
259 return posix::Stat(pathname_.c_str(), &file_stat) == 0;
297 return root_length > 0 && root_length == pathname_.size() &&
298 IsPathSeparator(pathname_[root_length - 1]);
327 return !pathname_.empty() &&
328 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]);
339 if (pathname_.empty() || this->DirectoryExists()) {
358 int result = _mkdir(pathname_.c_str());
365 int result = mkdir(pathname_.c_str(), 0777);
378 return IsDirectory() ? FilePath(pathname_.substr(0, pathname_.length() - 1))
387 auto out = pathname_.begin();
389 auto i = pathname_.cbegin();
392 if (pathname_.end() - i >= 3 && IsPathSeparator(*i) &&
398 while (i != pathname_.end()) {
402 } else if (out == pathname_.begin() || *std::prev(out) != kPathSeparator) {
408 pathname_.erase(out, pathname_.end());