Lines Matching refs:in_bytes
61 size_t in_bytes = strlen(in); in TEST() local
66 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
73 EXPECT_EQ(0U, in_bytes); in TEST()
87 size_t in_bytes = strlen(in); in TEST() local
95 EXPECT_EQ(2U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
102 EXPECT_EQ(0U, in_bytes); in TEST()
116 size_t in_bytes = strlen(in); in TEST() local
124 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
130 EXPECT_EQ(0U, in_bytes); in TEST()
144 size_t in_bytes = strlen(in); in TEST() local
151 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
156 EXPECT_EQ(6U, in_bytes); // Two bytes for ٦, three bytes for ᄀ, and one byte for z. in TEST()
170 size_t in_bytes = strlen(in); in TEST() local
177 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
181 --in_bytes; in TEST()
183 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
189 EXPECT_EQ(0U, in_bytes); in TEST()
203 size_t in_bytes = strlen(in); in TEST() local
210 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
216 EXPECT_EQ(1U, in_bytes); in TEST()
230 size_t in_bytes = strlen(in); in TEST() local
238 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
240 EXPECT_EQ(2U, in_bytes); in TEST()
246 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
248 EXPECT_EQ(2U, in_bytes); in TEST()
254 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
256 EXPECT_EQ(1U, in_bytes); in TEST()
262 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
264 EXPECT_EQ(0U, in_bytes); in TEST()
278 size_t in_bytes = 0; in TEST() local
281 ASSERT_EQ(static_cast<size_t>(-1), iconv(INVALID_ICONV_T, &in, &in_bytes, &out, &out_bytes)); in TEST()
299 size_t in_bytes = strlen(utf8); in RoundTrip() local
303 size_t replacement_count = iconv(c, &in, &in_bytes, &out, &out_bytes); in RoundTrip()
323 in_bytes = n; in RoundTrip()
327 iconv(c, &in, &in_bytes, &out, &out_bytes); in RoundTrip()
365 size_t in_bytes = n; in Check() local
370 ASSERT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in Check()
437 size_t in_bytes = 0; in TEST() local
444 ASSERT_EQ(static_cast<size_t>(0), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
450 ASSERT_EQ(static_cast<size_t>(0), iconv(c, nullptr, &in_bytes, &out, &out_bytes)); in TEST()