Lines Matching refs:remove_dots
941 static std::string remove_dots(StringRef path, in remove_dots() function
944 path::remove_dots(buffer, remove_dot_dot); in remove_dots()
950 EXPECT_EQ("foolz\\wat", remove_dots(".\\.\\\\foolz\\wat", false)); in TEST()
951 EXPECT_EQ("", remove_dots(".\\\\\\\\\\", false)); in TEST()
953 EXPECT_EQ("a\\..\\b\\c", remove_dots(".\\a\\..\\b\\c", false)); in TEST()
954 EXPECT_EQ("b\\c", remove_dots(".\\a\\..\\b\\c", true)); in TEST()
955 EXPECT_EQ("c", remove_dots(".\\.\\c", true)); in TEST()
958 EXPECT_TRUE(path::remove_dots(Path1, true)); in TEST()
961 EXPECT_EQ("foolz/wat", remove_dots("././/foolz/wat", false)); in TEST()
962 EXPECT_EQ("", remove_dots("./////", false)); in TEST()
964 EXPECT_EQ("a/../b/c", remove_dots("./a/../b/c", false)); in TEST()
965 EXPECT_EQ("b/c", remove_dots("./a/../b/c", true)); in TEST()
966 EXPECT_EQ("c", remove_dots("././c", true)); in TEST()
969 EXPECT_TRUE(path::remove_dots(Path1, true)); in TEST()