Home
last modified time | relevance | path

Searched refs:IsPathAbsolute (Results 1 – 7 of 7) sorted by relevance

/third_party/gn/src/gn/
Dfilesystem_utils_unittest.cc127 TEST(FilesystemUtils, IsPathAbsolute) { in TEST() argument
128 EXPECT_TRUE(IsPathAbsolute("/foo/bar")); in TEST()
129 EXPECT_TRUE(IsPathAbsolute("/")); in TEST()
130 EXPECT_FALSE(IsPathAbsolute("")); in TEST()
131 EXPECT_FALSE(IsPathAbsolute("//")); in TEST()
132 EXPECT_FALSE(IsPathAbsolute("//foo/bar")); in TEST()
135 EXPECT_TRUE(IsPathAbsolute("C:/foo")); in TEST()
136 EXPECT_TRUE(IsPathAbsolute("C:/")); in TEST()
137 EXPECT_TRUE(IsPathAbsolute("C:\\foo")); in TEST()
138 EXPECT_TRUE(IsPathAbsolute("C:\\")); in TEST()
[all …]
Dfilesystem_utils.cc336 bool IsPathAbsolute(std::string_view path) { in IsPathAbsolute() function
364 DCHECK(IsPathAbsolute(source_root)); in MakeAbsolutePathRelativeIfPossible()
365 DCHECK(IsPathAbsolute(path)); in MakeAbsolutePathRelativeIfPossible()
648 if (IsPathAbsolute(input) && !IsSlash(input[0]) && IsSlash(dest[0])) { in MakeRelativePath()
653 if (IsPathAbsolute(dest) && !IsSlash(dest[0]) && IsSlash(input[0])) { in MakeRelativePath()
660 if (IsPathAbsolute(input) && IsPathAbsolute(dest) && input.size() > 1 && in MakeRelativePath()
802 } else if (IsPathAbsolute(input)) { in ResolveRelative()
Dfilesystem_utils.h99 bool IsPathAbsolute(std::string_view path);
Dlabel.cc105 if (IsPathAbsolute(input)) { in Resolve()
Danalyzer.cc110 if (!IsPathSourceAbsolute(s) && !IsPathAbsolute(s)) { in AbsoluteOrSourceAbsoluteStringToLabel()
144 if (!IsPathSourceAbsolute(s) && !IsPathAbsolute(s)) { in JSONToInputs()
Dxcode_writer.cc579 if (IsPathAbsolute(source.value())) in ShouldIncludeFileInProject()
/third_party/gn/src/base/files/
Dfile_path.cc78 bool IsPathAbsolute(StringViewType path) { in IsPathAbsolute() function
464 DCHECK(!IsPathAbsolute(appended)); in Append()
512 return IsPathAbsolute(path_); in IsAbsolute()