Lines Matching refs:c

38   iconv_t c;  in TEST()  local
39 ASSERT_NE(INVALID_ICONV_T, c = iconv_open("UTF-8", "utf8")); in TEST()
40 ASSERT_EQ(0, iconv_close(c)); in TEST()
41 ASSERT_NE(INVALID_ICONV_T, c = iconv_open("UTF-8", "u.t.f-008")); in TEST()
42 ASSERT_EQ(0, iconv_close(c)); in TEST()
57 iconv_t c = iconv_open("UTF-32LE", "UTF-8"); in TEST() local
58 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
66 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
76 ASSERT_EQ(0, iconv_close(c)); in TEST()
83 iconv_t c = iconv_open("ASCII//TRANSLIT", "UTF-8"); in TEST() local
84 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
95 EXPECT_EQ(2U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
105 ASSERT_EQ(0, iconv_close(c)); in TEST()
112 iconv_t c = iconv_open("ASCII//IGNORE", "UTF-8"); in TEST() local
113 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
124 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
133 ASSERT_EQ(0, iconv_close(c)); in TEST()
140 iconv_t c = iconv_open("ASCII", "UTF-8"); in TEST() local
141 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
151 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
159 ASSERT_EQ(0, iconv_close(c)); in TEST()
166 iconv_t c = iconv_open("UTF-8", "UTF-8"); in TEST() local
167 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
177 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
183 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
192 ASSERT_EQ(0, iconv_close(c)); in TEST()
199 iconv_t c = iconv_open("UTF-8", "UTF-8"); in TEST() local
200 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
210 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
219 ASSERT_EQ(0, iconv_close(c)); in TEST()
226 iconv_t c = iconv_open("UTF-8", "UTF-8"); in TEST() local
227 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
238 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
246 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
254 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
262 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
272 ASSERT_EQ(0, iconv_close(c)); in TEST()
295 iconv_t c = iconv_open(dst_enc, "UTF-8"); in RoundTrip() local
296 ASSERT_NE(INVALID_ICONV_T, c) << dst_enc; in RoundTrip()
303 size_t replacement_count = iconv(c, &in, &in_bytes, &out, &out_bytes); in RoundTrip()
310 ASSERT_EQ(0, iconv_close(c)); in RoundTrip()
319 c = iconv_open("UTF-8", dst_enc); in RoundTrip()
320 ASSERT_NE(INVALID_ICONV_T, c) << dst_enc; in RoundTrip()
327 iconv(c, &in, &in_bytes, &out, &out_bytes); in RoundTrip()
331 ASSERT_EQ(0, iconv_close(c)); in RoundTrip()
363 iconv_t c = iconv_open("wchar_t", src_enc); in Check() local
370 ASSERT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in Check()
372 EXPECT_EQ(0, iconv_close(c)); in Check()
435 iconv_t c = iconv_open("utf8", "utf8"); 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()
454 EXPECT_EQ(0, iconv_close(c)); in TEST()