Lines Matching refs:absl
27 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
31 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
40 absl::Substitute( in TEST()
49 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
50 absl::Hex(0), absl::Hex(1, absl::kSpacePad2), in TEST()
51 absl::Hex(0xf, absl::kSpacePad2), in TEST()
52 absl::Hex(int16_t{-1}, absl::kSpacePad5), in TEST()
53 absl::Hex(int16_t{-1}, absl::kZeroPad5), in TEST()
54 absl::Hex(0x123456789abcdef, absl::kZeroPad16))); in TEST()
58 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
59 absl::Dec(0), absl::Dec(1, absl::kSpacePad2), in TEST()
60 absl::Dec(0xf, absl::kSpacePad2), in TEST()
61 absl::Dec(int16_t{-1}, absl::kSpacePad5), in TEST()
62 absl::Dec(int16_t{-1}, absl::kZeroPad5), in TEST()
63 absl::Dec(0x123456789abcdef, absl::kZeroPad16))); in TEST()
67 std::string str = absl::Substitute("$0", int_p); in TEST()
68 EXPECT_EQ(absl::StrCat("0x", absl::Hex(int_p)), str); in TEST()
74 str = absl::Substitute("$0", volptr); in TEST()
79 str = absl::Substitute("$0", null_p); in TEST()
84 str = absl::Substitute("$0", char_p); in TEST()
89 str = absl::Substitute("$0", char_buf); in TEST()
94 str = absl::Substitute("$0", char_p); in TEST()
98 EXPECT_EQ("b, a, c, b", absl::Substitute("$1, $0, $2, $1", "a", "b", "c")); in TEST()
101 EXPECT_EQ("$", absl::Substitute("$$")); in TEST()
103 EXPECT_EQ("$1", absl::Substitute("$$1")); in TEST()
106 EXPECT_EQ("a", absl::Substitute("$0", "a")); in TEST()
107 EXPECT_EQ("a b", absl::Substitute("$0 $1", "a", "b")); in TEST()
108 EXPECT_EQ("a b c", absl::Substitute("$0 $1 $2", "a", "b", "c")); in TEST()
109 EXPECT_EQ("a b c d", absl::Substitute("$0 $1 $2 $3", "a", "b", "c", "d")); in TEST()
111 absl::Substitute("$0 $1 $2 $3 $4", "a", "b", "c", "d", "e")); in TEST()
112 EXPECT_EQ("a b c d e f", absl::Substitute("$0 $1 $2 $3 $4 $5", "a", "b", "c", in TEST()
114 EXPECT_EQ("a b c d e f g", absl::Substitute("$0 $1 $2 $3 $4 $5 $6", "a", "b", in TEST()
117 absl::Substitute("$0 $1 $2 $3 $4 $5 $6 $7", "a", "b", "c", "d", "e", in TEST()
120 absl::Substitute("$0 $1 $2 $3 $4 $5 $6 $7 $8", "a", "b", "c", "d", in TEST()
123 absl::Substitute("$0 $1 $2 $3 $4 $5 $6 $7 $8 $9", "a", "b", "c", in TEST()
126 absl::Substitute("$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10", "a", "b", "c", in TEST()
130 EXPECT_EQ("Text: ''", absl::Substitute("Text: '$0'", null_cstring)); in TEST()
135 absl::SubstituteAndAppend(&str, ", $0!", "world"); in TEST()
140 absl::SubstituteAndAppend(&str, "$0", "a"); in TEST()
143 absl::SubstituteAndAppend(&str, "$0 $1", "a", "b"); in TEST()
146 absl::SubstituteAndAppend(&str, "$0 $1 $2", "a", "b", "c"); in TEST()
149 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3", "a", "b", "c", "d"); in TEST()
152 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3 $4", "a", "b", "c", "d", "e"); in TEST()
155 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3 $4 $5", "a", "b", "c", "d", "e", in TEST()
159 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3 $4 $5 $6", "a", "b", "c", "d", in TEST()
163 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3 $4 $5 $6 $7", "a", "b", "c", "d", in TEST()
167 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3 $4 $5 $6 $7 $8", "a", "b", "c", in TEST()
171 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3 $4 $5 $6 $7 $8 $9", "a", "b", in TEST()
180 absl::Substitute("$0 $1 $2 $3", v[0], v[1], cv[0], cv[1])); in TEST()
183 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3", v[0], v[1], cv[0], cv[1]); in TEST()
191 static_cast<void>(absl::Substitute(absl::string_view("-$2"), "a", "b")), in TEST()
195 static_cast<void>(absl::Substitute(absl::string_view("-$z-"))), in TEST()
198 static_cast<void>(absl::Substitute(absl::string_view("-$"))), in TEST()