Lines Matching refs:buf
55 char buf[BUFSIZ] = {}; in TEST() local
63 char* out = buf; in TEST()
64 size_t out_bytes = sizeof(buf); in TEST()
68 wchar_t* utf16 = reinterpret_cast<wchar_t*>(buf); in TEST()
74 EXPECT_EQ(sizeof(buf) - (3 /* chars */ * 4 /* bytes each */), out_bytes); in TEST()
81 char buf[BUFSIZ] = {}; in TEST() local
89 char* out = buf; in TEST()
90 size_t out_bytes = sizeof(buf); in TEST()
97 EXPECT_EQ('a', buf[0]); in TEST()
98 EXPECT_EQ('?', buf[1]); in TEST()
99 EXPECT_EQ('?', buf[2]); in TEST()
100 EXPECT_EQ('z', buf[3]); in TEST()
101 EXPECT_EQ(0, buf[4]); in TEST()
103 EXPECT_EQ(sizeof(buf) - 4, out_bytes); in TEST()
110 char buf[BUFSIZ] = {}; in TEST() local
118 char* out = buf; in TEST()
119 size_t out_bytes = sizeof(buf); in TEST()
127 EXPECT_EQ('a', buf[0]); in TEST()
128 EXPECT_EQ('z', buf[1]); in TEST()
129 EXPECT_EQ(0, buf[2]); in TEST()
131 EXPECT_EQ(sizeof(buf) - 2, out_bytes); in TEST()
138 char buf[BUFSIZ] = {}; in TEST() local
146 char* out = buf; in TEST()
147 size_t out_bytes = sizeof(buf); in TEST()
154 EXPECT_EQ('a', buf[0]); in TEST()
155 EXPECT_EQ(0, buf[1]); in TEST()
157 EXPECT_EQ(sizeof(buf) - 1, out_bytes); in TEST()
164 char buf[BUFSIZ] = {}; in TEST() local
172 char* out = buf; in TEST()
173 size_t out_bytes = sizeof(buf); in TEST()
186 EXPECT_EQ('a', buf[0]); in TEST()
187 EXPECT_EQ('z', buf[1]); in TEST()
188 EXPECT_EQ(0, buf[2]); in TEST()
190 EXPECT_EQ(sizeof(buf) - 2, out_bytes); in TEST()
197 char buf[BUFSIZ] = {}; in TEST() local
205 char* out = buf; in TEST()
206 size_t out_bytes = sizeof(buf); in TEST()
214 EXPECT_EQ('a', buf[0]); in TEST()
215 EXPECT_EQ(0, buf[1]); in TEST()
217 EXPECT_EQ(sizeof(buf) - 1, out_bytes); in TEST()
224 char buf[BUFSIZ] = {}; in TEST() local
232 char* out = buf; in TEST()
267 EXPECT_EQ('a', buf[0]); in TEST()
268 EXPECT_EQ('b', buf[1]); in TEST()
269 EXPECT_EQ('c', buf[2]); in TEST()
270 EXPECT_EQ(0, buf[3]); in TEST()
300 char buf[BUFSIZ] = {}; in RoundTrip() local
301 char* out = buf; in RoundTrip()
302 size_t out_bytes = sizeof(buf); in RoundTrip()
307 EXPECT_EQ(expected_bytes[i], buf[i]) << i << ' '<< dst_enc; in RoundTrip()
322 in = buf; in RoundTrip()