Home
last modified time | relevance | path

Searched refs:ElideMiddle (Results 1 – 4 of 4) sorted by relevance

/third_party/ninja/src/
Dutil_test.cc419 TEST(ElideMiddle, NothingToElide) { in TEST() argument
421 EXPECT_EQ(input, ElideMiddle(input, 80)); in TEST()
422 EXPECT_EQ(input, ElideMiddle(input, 38)); in TEST()
423 EXPECT_EQ("", ElideMiddle(input, 0)); in TEST()
424 EXPECT_EQ(".", ElideMiddle(input, 1)); in TEST()
425 EXPECT_EQ("..", ElideMiddle(input, 2)); in TEST()
426 EXPECT_EQ("...", ElideMiddle(input, 3)); in TEST()
429 TEST(ElideMiddle, ElideInTheMiddle) { in TEST() argument
431 string elided = ElideMiddle(input, 10); in TEST()
433 EXPECT_EQ("01234567...23456789", ElideMiddle(input, 19)); in TEST()
Dline_printer.cc87 to_print = ElideMiddle(to_print, static_cast<size_t>(csbi.dwSize.X)); in Print()
109 to_print = ElideMiddle(to_print, size.ws_col); in Print()
Dutil.h102 string ElideMiddle(const string& str, size_t width);
Dutil.cc598 string ElideMiddle(const string& str, size_t width) { in ElideMiddle() function