Lines Matching refs:chars
120 const wchar_t chars[] = { L'h', L'e', L'l', L'l', L'o', 0 }; in TEST() local
126 EXPECT_EQ(5U, wcstombs(nullptr, chars, 0)); in TEST()
127 EXPECT_EQ(5U, wcstombs(nullptr, chars, 4)); in TEST()
128 EXPECT_EQ(5U, wcstombs(nullptr, chars, 256)); in TEST()
129 src = chars; in TEST()
131 EXPECT_EQ(&chars[0], src); in TEST()
132 src = chars; in TEST()
134 EXPECT_EQ(&chars[0], src); in TEST()
135 src = chars; in TEST()
137 EXPECT_EQ(&chars[0], src); in TEST()
162 EXPECT_EQ(0U, wcstombs(bytes, chars, 0)); in TEST()
164 EXPECT_EQ(4U, wcstombs(bytes, chars, 4)); in TEST()
168 EXPECT_EQ(5U, wcstombs(bytes, chars, 256)); in TEST()
171 EXPECT_EQ(5U, wcstombs(bytes, chars, 6)); in TEST()
182 src = chars; in TEST()
184 EXPECT_EQ(&chars[0], src); // No input consumed. in TEST()
188 src = chars; in TEST()
190 EXPECT_EQ(&chars[4], src); // Some input consumed. in TEST()
196 src = chars; in TEST()
203 src = chars; in TEST()
219 src = chars; in TEST()