Lines Matching refs:path_

178   path.CopyToString(&path_);  in FilePath()
179 StringType::size_type nul_pos = path_.find(kStringTerminator); in FilePath()
181 path_.erase(nul_pos, StringType::npos); in FilePath()
192 return EqualDriveLetterCaseInsensitive(this->path_, that.path_); in operator ==()
194 return path_ == that.path_; in operator ==()
200 return !EqualDriveLetterCaseInsensitive(this->path_, that.path_); in operator !=()
202 return path_ != that.path_; in operator !=()
309 FilePath new_path(path_); in DirName()
316 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName()
319 new_path.path_.find_last_of(kSeparators, StringType::npos, in DirName()
323 new_path.path_.resize(letter + 1); in DirName()
326 new_path.path_.resize(letter + 2); in DirName()
328 IsSeparator(new_path.path_[letter + 1])) { in DirName()
331 new_path.path_.resize(letter + 3); in DirName()
334 new_path.path_.resize(last_separator); in DirName()
338 if (!new_path.path_.length()) in DirName()
339 new_path.path_ = kCurrentDirectory; in DirName()
345 FilePath new_path(path_); in BaseName()
349 StringType::size_type letter = FindDriveLetter(new_path.path_); in BaseName()
351 new_path.path_.erase(0, letter + 1); in BaseName()
357 new_path.path_.find_last_of(kSeparators, StringType::npos, in BaseName()
360 last_separator < new_path.path_.length() - 1) { in BaseName()
361 new_path.path_.erase(0, last_separator + 1); in BaseName()
369 const StringType::size_type dot = ExtensionSeparatorPosition(base.path_); in Extension()
373 return base.path_.substr(dot, StringType::npos); in Extension()
378 const StringType::size_type dot = FinalExtensionSeparatorPosition(base.path_); in FinalExtension()
382 return base.path_.substr(dot, StringType::npos); in FinalExtension()
389 const StringType::size_type dot = ExtensionSeparatorPosition(path_); in RemoveExtension()
393 return FilePath(path_.substr(0, dot)); in RemoveExtension()
400 const StringType::size_type dot = FinalExtensionSeparatorPosition(path_); in RemoveFinalExtension()
404 return FilePath(path_.substr(0, dot)); in RemoveFinalExtension()
409 return FilePath(path_); in InsertBeforeExtension()
440 StringType str = path_; in AddExtension()
489 if (path_.compare(kCurrentDirectory) == 0 && !appended.empty()) { in Append()
500 FilePath new_path(path_); in Append()
506 if (!appended.empty() && !new_path.path_.empty()) { in Append()
509 if (!IsSeparator(new_path.path_.back())) { in Append()
511 if (FindDriveLetter(new_path.path_) + 1 != new_path.path_.length()) { in Append()
512 new_path.path_.append(1, kSeparators[0]); in Append()
517 appended.AppendToString(&new_path.path_); in Append()
535 return IsPathAbsolute(path_); in IsAbsolute()
541 return IsSeparator(path_.back()); in EndsWithSeparator()
545 if (EndsWithSeparator() || path_.empty()) in AsEndingWithSeparator()
549 path_str.reserve(path_.length() + 1); // Only allocate string once. in AsEndingWithSeparator()
551 path_str = path_; in AsEndingWithSeparator()
557 FilePath new_path(path_); in StripTrailingSeparators()
564 if (path_.find(kParentDirectory) == StringType::npos) { in ReferencesParent()
592 return path_; in LossyDisplayName()
596 if (base::IsStringASCII(path_)) in MaybeAsASCII()
597 return UTF16ToASCII(path_); in MaybeAsASCII()
625 return WideToUTF16(SysNativeMBToWide(path_)); in LossyDisplayName()
629 if (base::IsStringASCII(path_)) in MaybeAsASCII()
630 return path_; in MaybeAsASCII()
672 pickle->WriteString16(path_); in WriteToPickle()
674 pickle->WriteString(path_); in WriteToPickle()
682 if (!iter->ReadString16(&path_)) in ReadFromPickle()
685 if (!iter->ReadString(&path_)) in ReadFromPickle()
691 if (path_.find(kStringTerminator) != StringType::npos) in ReadFromPickle()
1302 StringType::size_type start = FindDriveLetter(path_) + 2; in StripTrailingSeparatorsInternal()
1305 for (StringType::size_type pos = path_.length(); in StripTrailingSeparatorsInternal()
1306 pos > start && IsSeparator(path_[pos - 1]); in StripTrailingSeparatorsInternal()
1311 !IsSeparator(path_[start - 1])) { in StripTrailingSeparatorsInternal()
1312 path_.resize(pos - 1); in StripTrailingSeparatorsInternal()
1326 StringType copy = path_; in NormalizePathSeparatorsTo()
1338 return StartsWith(path_, "content://", base::CompareCase::INSENSITIVE_ASCII); in IsContentUri()