Lines Matching refs:mbrtoc16

153   ASSERT_EQ(0U, mbrtoc16(NULL, NULL, 0, NULL));  in TEST()
164 ASSERT_EQ(0U, mbrtoc16(&out, "hello", 0, NULL)); in TEST()
167 ASSERT_EQ(0U, mbrtoc16(&out, "hello", 0, NULL)); in TEST()
168 ASSERT_EQ(0U, mbrtoc16(&out, "", 0, NULL)); in TEST()
169 ASSERT_EQ(1U, mbrtoc16(&out, "hello", 1, NULL)); in TEST()
176 TEST(uchar, mbrtoc16) { in TEST() argument
184 ASSERT_EQ(1U, mbrtoc16(&out, "abcdef", 6, NULL)); in TEST()
187 ASSERT_EQ(2U, mbrtoc16(&out, "\xc2\xa2" "cdef", 6, NULL)); in TEST()
190 ASSERT_EQ(3U, mbrtoc16(&out, "\xe2\x82\xac" "def", 6, NULL)); in TEST()
202 mbrtoc16(&out, "\xf4\x8a\xaf\x8d", 6, NULL)); in TEST()
204 ASSERT_EQ(4U, mbrtoc16(&out, "\xf4\x8a\xaf\x8d" "ef", 6, NULL)); in TEST()
215 mbrtoc16(&out, "\xf0\x80\xbf\xbf", 6, NULL)); in TEST()
225 mbrtoc16(&out, "\xf5\x80\x80\x80", 6, NULL)); in TEST()
238 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xc2", 1, ps)); in test_mbrtoc16_incomplete()
239 ASSERT_EQ(1U, mbrtoc16(&out, "\xa2" "cdef", 5, ps)); in test_mbrtoc16_incomplete()
243 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xe2", 1, ps)); in test_mbrtoc16_incomplete()
244 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\x82", 1, ps)); in test_mbrtoc16_incomplete()
245 ASSERT_EQ(1U, mbrtoc16(&out, "\xac" "def", 4, ps)); in test_mbrtoc16_incomplete()
249 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xf4", 1, ps)); in test_mbrtoc16_incomplete()
250 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\x8a\xaf", 2, ps)); in test_mbrtoc16_incomplete()
251 ASSERT_EQ(static_cast<size_t>(-3), mbrtoc16(&out, "\x8d" "ef", 3, ps)); in test_mbrtoc16_incomplete()
253 ASSERT_EQ(1U, mbrtoc16(&out, "\x80" "ef", 3, ps)); in test_mbrtoc16_incomplete()
258 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xc2", 1, ps)); in test_mbrtoc16_incomplete()
259 ASSERT_EQ(static_cast<size_t>(-1), mbrtoc16(&out, "\x20" "cdef", 5, ps)); in test_mbrtoc16_incomplete()