• Home
  • Raw
  • Download

Lines Matching refs:FilePath

32 using StringType = FilePath::StringType;
33 using StringPieceType = FilePath::StringPieceType;
40 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0');
85 FilePath::IsSeparator(path[letter + 1]); in IsPathAbsolute()
89 FilePath::IsSeparator(path[0]) && FilePath::IsSeparator(path[1]); in IsPathAbsolute()
92 return path.length() > 0 && FilePath::IsSeparator(path[0]); in IsPathAbsolute()
99 if (!FilePath::IsSeparator(*it)) in AreAllSeparators()
111 if (path == FilePath::kCurrentDirectory || path == FilePath::kParentDirectory) in FinalExtensionSeparatorPosition()
114 return path.rfind(FilePath::kExtensionSeparator); in FinalExtensionSeparatorPosition()
129 path.rfind(FilePath::kExtensionSeparator, last_dot - 1); in ExtensionSeparatorPosition()
131 path.find_last_of(FilePath::kSeparators, last_dot - 1, in ExtensionSeparatorPosition()
132 FilePath::kSeparatorsLength - 1); in ExtensionSeparatorPosition()
162 if (path.empty() || path == FilePath::kCurrentDirectory || in IsEmptyOrSpecialCase()
163 path == FilePath::kParentDirectory) { in IsEmptyOrSpecialCase()
172 FilePath::FilePath() = default;
174 FilePath::FilePath(const FilePath& that) = default;
175 FilePath::FilePath(FilePath&& that) noexcept = default;
177 FilePath::FilePath(StringPieceType path) { in FilePath() function in base::FilePath
184 FilePath::~FilePath() = default;
186 FilePath& FilePath::operator=(const FilePath& that) = default;
188 FilePath& FilePath::operator=(FilePath&& that) = default;
190 bool FilePath::operator==(const FilePath& that) const { in operator ==()
198 bool FilePath::operator!=(const FilePath& that) const { in operator !=()
206 std::ostream& operator<<(std::ostream& out, const FilePath& file_path) { in operator <<()
211 bool FilePath::IsSeparator(CharType character) { in IsSeparator()
221 void FilePath::GetComponents(std::vector<StringType>* components) const { in GetComponents()
230 FilePath current = *this; in GetComponents()
231 FilePath base; in GetComponents()
247 FilePath dir = current.DirName(); in GetComponents()
256 bool FilePath::IsParent(const FilePath& child) const { in IsParent()
260 bool FilePath::AppendRelativePath(const FilePath& child, in AppendRelativePath()
261 FilePath* path) const { in AppendRelativePath()
308 FilePath FilePath::DirName() const { in DirName()
309 FilePath new_path(path_); in DirName()
344 FilePath FilePath::BaseName() const { in BaseName()
345 FilePath new_path(path_); in BaseName()
367 StringType FilePath::Extension() const { in Extension()
368 FilePath base(BaseName()); in Extension()
376 StringType FilePath::FinalExtension() const { in FinalExtension()
377 FilePath base(BaseName()); in FinalExtension()
385 FilePath FilePath::RemoveExtension() const { in RemoveExtension()
393 return FilePath(path_.substr(0, dot)); in RemoveExtension()
396 FilePath FilePath::RemoveFinalExtension() const { in RemoveFinalExtension()
404 return FilePath(path_.substr(0, dot)); in RemoveFinalExtension()
407 FilePath FilePath::InsertBeforeExtension(StringPieceType suffix) const { in InsertBeforeExtension()
409 return FilePath(path_); in InsertBeforeExtension()
412 return FilePath(); in InsertBeforeExtension()
418 return FilePath(ret); in InsertBeforeExtension()
421 FilePath FilePath::InsertBeforeExtensionASCII(StringPiece suffix) in InsertBeforeExtensionASCII()
431 FilePath FilePath::AddExtension(StringPieceType extension) const { in AddExtension()
433 return FilePath(); in AddExtension()
446 return FilePath(str); in AddExtension()
449 FilePath FilePath::ReplaceExtension(StringPieceType extension) const { in ReplaceExtension()
451 return FilePath(); in ReplaceExtension()
453 FilePath no_ext = RemoveExtension(); in ReplaceExtension()
463 return FilePath(str); in ReplaceExtension()
466 bool FilePath::MatchesExtension(StringPieceType extension) const { in MatchesExtension()
474 return FilePath::CompareEqualIgnoreCase(extension, current_extension); in MatchesExtension()
477 FilePath FilePath::Append(StringPieceType component) const { in Append()
497 return FilePath(appended); in Append()
500 FilePath new_path(path_); in Append()
521 FilePath FilePath::Append(const FilePath& component) const { in Append()
525 FilePath FilePath::AppendASCII(StringPiece component) const { in AppendASCII()
534 bool FilePath::IsAbsolute() const { in IsAbsolute()
538 bool FilePath::EndsWithSeparator() const { in EndsWithSeparator()
544 FilePath FilePath::AsEndingWithSeparator() const { in AsEndingWithSeparator()
553 return FilePath(path_str); in AsEndingWithSeparator()
556 FilePath FilePath::StripTrailingSeparators() const { in StripTrailingSeparators()
557 FilePath new_path(path_); in StripTrailingSeparators()
563 bool FilePath::ReferencesParent() const { in ReferencesParent()
591 string16 FilePath::LossyDisplayName() const { in LossyDisplayName()
595 std::string FilePath::MaybeAsASCII() const { in MaybeAsASCII()
601 std::string FilePath::AsUTF8Unsafe() const { in AsUTF8Unsafe()
605 string16 FilePath::AsUTF16Unsafe() const { in AsUTF16Unsafe()
610 FilePath FilePath::FromUTF8Unsafe(StringPiece utf8) { in FromUTF8Unsafe()
611 return FilePath(UTF8ToWide(utf8)); in FromUTF8Unsafe()
615 FilePath FilePath::FromUTF16Unsafe(StringPiece16 utf16) { in FromUTF16Unsafe()
616 return FilePath(utf16); in FromUTF16Unsafe()
624 string16 FilePath::LossyDisplayName() const { in LossyDisplayName()
628 std::string FilePath::MaybeAsASCII() const { in MaybeAsASCII()
634 std::string FilePath::AsUTF8Unsafe() const { in AsUTF8Unsafe()
642 string16 FilePath::AsUTF16Unsafe() const { in AsUTF16Unsafe()
651 FilePath FilePath::FromUTF8Unsafe(StringPiece utf8) { in FromUTF8Unsafe()
653 return FilePath(utf8); in FromUTF8Unsafe()
655 return FilePath(SysWideToNativeMB(UTF8ToWide(utf8))); in FromUTF8Unsafe()
660 FilePath FilePath::FromUTF16Unsafe(StringPiece16 utf16) { in FromUTF16Unsafe()
662 return FilePath(UTF16ToUTF8(utf16)); in FromUTF16Unsafe()
664 return FilePath(SysWideToNativeMB(UTF16ToWide(utf16.as_string()))); in FromUTF16Unsafe()
670 void FilePath::WriteToPickle(Pickle* pickle) const { in WriteToPickle()
680 bool FilePath::ReadFromPickle(PickleIterator* iter) { in ReadFromPickle()
700 int FilePath::CompareIgnoreCase(StringPieceType string1, in CompareIgnoreCase()
1180 int FilePath::HFSFastUnicodeCompare(StringPieceType string1, in HFSFastUnicodeCompare()
1204 StringType FilePath::GetHFSDecomposedForm(StringPieceType string) { in GetHFSDecomposedForm()
1239 int FilePath::CompareIgnoreCase(StringPieceType string1, in CompareIgnoreCase()
1281 int FilePath::CompareIgnoreCase(StringPieceType string1, in CompareIgnoreCase()
1296 void FilePath::StripTrailingSeparatorsInternal() { in StripTrailingSeparatorsInternal()
1318 FilePath FilePath::NormalizePathSeparators() const { in NormalizePathSeparators()
1322 FilePath FilePath::NormalizePathSeparatorsTo(CharType separator) const { in NormalizePathSeparatorsTo()
1330 return FilePath(copy); in NormalizePathSeparatorsTo()
1337 bool FilePath::IsContentUri() const { in IsContentUri()