Lines Matching defs:remove_dots
1559 static std::string remove_dots(StringRef path, bool remove_dot_dot,
1562 path::remove_dots(buffer, remove_dot_dot, style);
1568 remove_dots(".\\.\\\\foolz\\wat", false, path::Style::windows));
1569 EXPECT_EQ("", remove_dots(".\\\\\\\\\\", false, path::Style::windows));
1572 remove_dots(".\\a\\..\\b\\c", false, path::Style::windows));
1573 EXPECT_EQ("b\\c", remove_dots(".\\a\\..\\b\\c", true, path::Style::windows));
1574 EXPECT_EQ("c", remove_dots(".\\.\\c", true, path::Style::windows));
1576 remove_dots("..\\a\\b\\..\\c", true, path::Style::windows));
1578 remove_dots("..\\..\\a\\b\\..\\c", true, path::Style::windows));
1579 EXPECT_EQ("C:\\a\\c", remove_dots("C:\\foo\\bar//..\\..\\a\\c", true,
1583 remove_dots("C:/foo/../bar", true, path::Style::windows));
1585 remove_dots("C:/foo/bar", true, path::Style::windows));
1587 remove_dots("C:/foo\\bar", true, path::Style::windows));
1588 EXPECT_EQ("\\", remove_dots("/", true, path::Style::windows));
1589 EXPECT_EQ("C:\\", remove_dots("C:/", true, path::Style::windows));
1591 // Some clients of remove_dots expect it to remove trailing slashes. Again,
1595 remove_dots("C:\\foo\\bar\\", true, path::Style::windows));
1597 remove_dots("/foo/bar/", true, path::Style::posix));
1601 remove_dots("C:/foo//bar", true, path::Style::windows));
1604 EXPECT_TRUE(path::remove_dots(Path1, true, path::Style::windows));
1608 remove_dots("././/foolz/wat", false, path::Style::posix));
1609 EXPECT_EQ("", remove_dots("./////", false, path::Style::posix));
1611 EXPECT_EQ("a/../b/c", remove_dots("./a/../b/c", false, path::Style::posix));
1612 EXPECT_EQ("b/c", remove_dots("./a/../b/c", true, path::Style::posix));
1613 EXPECT_EQ("c", remove_dots("././c", true, path::Style::posix));
1614 EXPECT_EQ("../a/c", remove_dots("../a/b/../c", true, path::Style::posix));
1616 remove_dots("../../a/b/../c", true, path::Style::posix));
1617 EXPECT_EQ("/a/c", remove_dots("/../../a/c", true, path::Style::posix));
1619 remove_dots("/../a/b//../././/c", true, path::Style::posix));
1620 EXPECT_EQ("/", remove_dots("/", true, path::Style::posix));
1624 remove_dots("//foo/bar/", true, path::Style::posix));
1627 EXPECT_TRUE(path::remove_dots(Path2, true, path::Style::posix));