Lines Matching refs:wcsrtombs
126 EXPECT_EQ(5U, wcsrtombs(NULL, &src, 0, NULL));
129 EXPECT_EQ(5U, wcsrtombs(NULL, &src, 4, NULL));
132 EXPECT_EQ(5U, wcsrtombs(NULL, &src, 256, NULL));
143 // And wcsrtombs doesn't tell us where it got stuck because we didn't ask it
147 EXPECT_EQ(static_cast<size_t>(-1), wcsrtombs(NULL, &src, 0, NULL));
152 EXPECT_EQ(static_cast<size_t>(-1), wcsrtombs(NULL, &src, 256, NULL));
176 // wcsrtombs is a bit more informative...
179 EXPECT_EQ(0U, wcsrtombs(bytes, &src, 0, NULL));
185 EXPECT_EQ(4U, wcsrtombs(bytes, &src, 4, NULL));
193 EXPECT_EQ(5U, wcsrtombs(bytes, &src, 256, NULL));
200 EXPECT_EQ(5U, wcsrtombs(bytes, &src, 6, NULL));
207 EXPECT_EQ(static_cast<size_t>(-1), wcsrtombs(bytes, &src, 256, NULL));
213 // Any non-initial state is invalid when calling wcsrtombs.
218 EXPECT_EQ(static_cast<size_t>(-1), wcsrtombs(NULL, &src, 0, &ps));