Home | History | Annotate | Download | only in strings

Lines Matching refs:StrCat

16 #include "tensorflow/core/lib/strings/strcat.h"
33 // Test StrCat of ints and longs of various sizes and signdedness.
34 TEST(StrCat, Ints) {
49 answer = tensorflow::strings::StrCat(s, us);
51 answer = tensorflow::strings::StrCat(i, ui);
53 answer = tensorflow::strings::StrCat(l, ul);
55 answer = tensorflow::strings::StrCat(ll, ull);
57 answer = tensorflow::strings::StrCat(ptrdiff, size);
59 answer = tensorflow::strings::StrCat(ssize, intptr);
61 answer = tensorflow::strings::StrCat(uintptr, 0);
65 TEST(StrCat, Basics) {
77 result = tensorflow::strings::StrCat(false, true, 2, 3);
80 result = tensorflow::strings::StrCat(-1);
83 result = tensorflow::strings::StrCat(0.5);
86 result = tensorflow::strings::StrCat(strs[1], pieces[2]);
89 result = tensorflow::strings::StrCat(strs[0], ", ", pieces[2]);
93 tensorflow::strings::StrCat(strs[0], ", ", strs[1], " ", strs[2], "!");
97 tensorflow::strings::StrCat(pieces[0], ", ", pieces[1], " ", pieces[2]);
101 tensorflow::strings::StrCat(c_strs[0], ", ", c_strs[1], " ", c_strs[2]);
104 result = tensorflow::strings::StrCat("ASCII ", i32s[0], ", ", i32s[1], " ",
108 result = tensorflow::strings::StrCat(ui64s[0], ", ", ui64s[1], "!");
114 result = tensorflow::strings::StrCat("And a ", one.size(), " and a ",
119 // result = StrCat("Single chars won't compile", '!');
120 // result = StrCat("Neither will NULLs", NULL);
121 result = tensorflow::strings::StrCat(
126 result = tensorflow::strings::StrCat("A hundred K and a half is ", f);
131 result = tensorflow::strings::StrCat("A hundred K and a half squared is ", d);
136 tensorflow::strings::StrCat("Ten thousand seven is approximately ", h);
139 result = tensorflow::strings::StrCat(1, 2, 333, 4444, 55555, 666666, 7777777,
144 TEST(StrCat, MaxArgs) {
147 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a");
149 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b");
152 tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c");
154 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
157 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
160 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
163 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
166 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
169 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
172 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
175 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
179 tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d",
183 tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d",
186 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
190 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
194 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
198 result = tensorflow::strings::StrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c",
203 result = tensorflow::strings::StrCat(
269 // result = StrCat("Single chars won't compile", '!');
270 // result = StrCat("Neither will NULLs", NULL);
317 string actual = StrCat(Hex(v, tensorflow::strings::ZERO_PAD_16));
321 actual = StrCat(Hex(v, tensorflow::strings::ZERO_PAD_8));
325 actual = StrCat(Hex(v));
332 string actual = StrCat(Hex(v, tensorflow::strings::ZERO_PAD_8));
336 actual = StrCat(Hex(v));
343 string actual = StrCat(Hex(v, tensorflow::strings::ZERO_PAD_8));
347 actual = StrCat(Hex(v));
366 EXPECT_EQ("ff", StrCat(Hex(minus_one_8bit)));
369 EXPECT_EQ("ffff", StrCat(Hex(minus_one_16bit)));