• Home
  • Raw
  • Download

Lines Matching refs:mbrtoc16

169   ASSERT_EQ(0U, mbrtoc16(nullptr, nullptr, 0, nullptr));  in TEST()
179 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "hello", 0, nullptr)); in TEST()
182 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "hello", 0, nullptr)); in TEST()
183 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "", 0, nullptr)); in TEST()
184 EXPECT_EQ(1U, mbrtoc16(&out, "hello", 1, nullptr)); in TEST()
188 TEST(uchar, mbrtoc16) { in TEST() argument
195 ASSERT_EQ(1U, mbrtoc16(&out, "abcdef", 6, nullptr)); in TEST()
198 ASSERT_EQ(2U, mbrtoc16(&out, "\xc2\xa2" "cdef", 6, nullptr)); in TEST()
201 ASSERT_EQ(3U, mbrtoc16(&out, "\xe2\x82\xac" "def", 6, nullptr)); in TEST()
204 ASSERT_EQ(4U, mbrtoc16(&out, "\xf4\x8a\xaf\x8d", 6, nullptr)); in TEST()
206 ASSERT_EQ(static_cast<size_t>(-3), mbrtoc16(&out, in TEST()
219 auto result = mbrtoc16(&out, "\xf8\xa1\xa2\xa3\xa4", 5, nullptr); in TEST()
237 EXPECT_EQ(static_cast<size_t>(-1), mbrtoc16(&out, "\xf0\x80\xbf\xbf", 6, nullptr)); in TEST()
248 auto result = mbrtoc16(&out, "\xf5\x80\x80\x80", 6, nullptr); in TEST()
266 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xc2", 1, ps)); in test_mbrtoc16_incomplete()
267 ASSERT_EQ(1U, mbrtoc16(&out, "\xa2" "cdef", 5, ps)); in test_mbrtoc16_incomplete()
271 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xe2", 1, ps)); in test_mbrtoc16_incomplete()
272 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\x82", 1, ps)); in test_mbrtoc16_incomplete()
273 ASSERT_EQ(1U, mbrtoc16(&out, "\xac" "def", 4, ps)); in test_mbrtoc16_incomplete()
277 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xf4", 1, ps)); in test_mbrtoc16_incomplete()
278 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\x8a\xaf", 2, ps)); in test_mbrtoc16_incomplete()
279 ASSERT_EQ(1U, mbrtoc16(&out, in test_mbrtoc16_incomplete()
284 ASSERT_EQ(static_cast<size_t>(-3), mbrtoc16(&out, in test_mbrtoc16_incomplete()
292 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xc2", 1, ps)); in test_mbrtoc16_incomplete()
294 ASSERT_EQ(static_cast<size_t>(-1), mbrtoc16(&out, "\x20" "cdef", 5, ps)); in test_mbrtoc16_incomplete()