Lines Matching refs:c32rtomb
50 // Any non-initial state is invalid when calling c32rtomb.
53 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(out, 0x00a2, &ps));
56 // If the first argument to c32rtomb is NULL or the second is L'\0' the shift
60 EXPECT_EQ(1U, c32rtomb(NULL, 0x00a2, &ps));
65 EXPECT_EQ(1U, c32rtomb(out, L'\0', &ps));
276 TEST(uchar, c32rtomb) {
278 EXPECT_EQ(1U, c32rtomb(NULL, L'\0', NULL));
279 EXPECT_EQ(1U, c32rtomb(NULL, L'h', NULL));
283 EXPECT_EQ(1U, c32rtomb(bytes, L'\0', NULL));
286 EXPECT_EQ(1U, c32rtomb(bytes, L'h', NULL));
294 EXPECT_EQ(1U, c32rtomb(bytes, L'h', NULL));
298 EXPECT_EQ(2U, c32rtomb(bytes, 0x00a2, NULL));
303 EXPECT_EQ(3U, c32rtomb(bytes, 0x20ac, NULL));
309 EXPECT_EQ(4U, c32rtomb(bytes, 0x24b62, NULL));
315 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(bytes, 0xffffffff, NULL));