Lines Matching refs:remove_dots

1404 static std::string remove_dots(StringRef path, bool remove_dot_dot,  in remove_dots()  function
1407 path::remove_dots(buffer, remove_dot_dot, style); in remove_dots()
1413 remove_dots(".\\.\\\\foolz\\wat", false, path::Style::windows)); in TEST()
1414 EXPECT_EQ("", remove_dots(".\\\\\\\\\\", false, path::Style::windows)); in TEST()
1417 remove_dots(".\\a\\..\\b\\c", false, path::Style::windows)); in TEST()
1418 EXPECT_EQ("b\\c", remove_dots(".\\a\\..\\b\\c", true, path::Style::windows)); in TEST()
1419 EXPECT_EQ("c", remove_dots(".\\.\\c", true, path::Style::windows)); in TEST()
1421 remove_dots("..\\a\\b\\..\\c", true, path::Style::windows)); in TEST()
1423 remove_dots("..\\..\\a\\b\\..\\c", true, path::Style::windows)); in TEST()
1424 EXPECT_EQ("C:\\a\\c", remove_dots("C:\\foo\\bar//..\\..\\a\\c", true, in TEST()
1430 remove_dots("C:/foo/../bar", true, path::Style::windows)); in TEST()
1432 remove_dots("C:/foo/bar", true, path::Style::windows)); in TEST()
1434 remove_dots("C:/foo\\bar", true, path::Style::windows)); in TEST()
1435 EXPECT_EQ("/", remove_dots("/", true, path::Style::windows)); in TEST()
1436 EXPECT_EQ("C:/", remove_dots("C:/", true, path::Style::windows)); in TEST()
1442 remove_dots("C:\\foo\\bar\\", true, path::Style::windows)); in TEST()
1444 remove_dots("/foo/bar/", true, path::Style::posix)); in TEST()
1447 EXPECT_EQ("C:/foo\\bar", remove_dots("C:/foo//bar", true, path::Style::windows)); in TEST()
1450 EXPECT_TRUE(path::remove_dots(Path1, true, path::Style::windows)); in TEST()
1454 remove_dots("././/foolz/wat", false, path::Style::posix)); in TEST()
1455 EXPECT_EQ("", remove_dots("./////", false, path::Style::posix)); in TEST()
1457 EXPECT_EQ("a/../b/c", remove_dots("./a/../b/c", false, path::Style::posix)); in TEST()
1458 EXPECT_EQ("b/c", remove_dots("./a/../b/c", true, path::Style::posix)); in TEST()
1459 EXPECT_EQ("c", remove_dots("././c", true, path::Style::posix)); in TEST()
1460 EXPECT_EQ("../a/c", remove_dots("../a/b/../c", true, path::Style::posix)); in TEST()
1462 remove_dots("../../a/b/../c", true, path::Style::posix)); in TEST()
1463 EXPECT_EQ("/a/c", remove_dots("/../../a/c", true, path::Style::posix)); in TEST()
1465 remove_dots("/../a/b//../././/c", true, path::Style::posix)); in TEST()
1466 EXPECT_EQ("/", remove_dots("/", true, path::Style::posix)); in TEST()
1470 remove_dots("//foo/bar/", true, path::Style::posix)); in TEST()
1473 EXPECT_TRUE(path::remove_dots(Path2, true, path::Style::posix)); in TEST()