Lines Matching refs:new_path
301 FilePath new_path(path_); in DirName() local
302 new_path.StripTrailingSeparatorsInternal(); in DirName()
308 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName()
310 StringType::size_type last_separator = new_path.path_.find_last_of( in DirName()
314 new_path.path_.resize(letter + 1); in DirName()
317 new_path.path_.resize(letter + 2); in DirName()
319 IsSeparator(new_path.path_[letter + 1])) { in DirName()
322 new_path.path_.resize(letter + 3); in DirName()
325 new_path.path_.resize(last_separator); in DirName()
328 new_path.StripTrailingSeparatorsInternal(); in DirName()
329 if (!new_path.path_.length()) in DirName()
330 new_path.path_ = kCurrentDirectory; in DirName()
332 return new_path; in DirName()
336 FilePath new_path(path_); in BaseName() local
337 new_path.StripTrailingSeparatorsInternal(); in BaseName()
340 StringType::size_type letter = FindDriveLetter(new_path.path_); in BaseName()
342 new_path.path_.erase(0, letter + 1); in BaseName()
347 StringType::size_type last_separator = new_path.path_.find_last_of( in BaseName()
350 last_separator < new_path.path_.length() - 1) { in BaseName()
351 new_path.path_.erase(0, last_separator + 1); in BaseName()
354 return new_path; in BaseName()
478 FilePath new_path(path_); in Append() local
479 new_path.StripTrailingSeparatorsInternal(); in Append()
484 if (!appended.empty() && !new_path.path_.empty()) { in Append()
487 if (!IsSeparator(new_path.path_.back())) { in Append()
489 if (FindDriveLetter(new_path.path_) + 1 != new_path.path_.length()) { in Append()
490 new_path.path_.append(1, kSeparators[0]); in Append()
495 new_path.path_.append(appended); in Append()
496 return new_path; in Append()
535 FilePath new_path(path_); in StripTrailingSeparators() local
536 new_path.StripTrailingSeparatorsInternal(); in StripTrailingSeparators()
538 return new_path; in StripTrailingSeparators()