Searched refs:ElideMiddle (Results 1 – 4 of 4) sorted by relevance
/third_party/ninja/src/ |
D | util_test.cc | 411 TEST(ElideMiddle, NothingToElide) { in TEST() argument 413 EXPECT_EQ(input, ElideMiddle(input, 80)); in TEST() 414 EXPECT_EQ(input, ElideMiddle(input, 38)); in TEST() 415 EXPECT_EQ("", ElideMiddle(input, 0)); in TEST() 416 EXPECT_EQ(".", ElideMiddle(input, 1)); in TEST() 417 EXPECT_EQ("..", ElideMiddle(input, 2)); in TEST() 418 EXPECT_EQ("...", ElideMiddle(input, 3)); in TEST() 421 TEST(ElideMiddle, ElideInTheMiddle) { in TEST() argument 423 string elided = ElideMiddle(input, 10); in TEST() 425 EXPECT_EQ("01234567...23456789", ElideMiddle(input, 19)); in TEST()
|
D | line_printer.cc | 84 to_print = ElideMiddle(to_print, static_cast<size_t>(csbi.dwSize.X)); in Print() 111 to_print = ElideMiddle(to_print, size.ws_col); in Print()
|
D | util.h | 108 std::string ElideMiddle(const std::string& str, size_t width);
|
D | util.cc | 831 string ElideMiddle(const string& str, size_t width) { in ElideMiddle() function
|