Lines Matching refs:chars
116 const wchar_t chars[] = { L'h', L'e', L'l', L'l', L'o', 0 }; in TEST() local
122 EXPECT_EQ(5U, wcstombs(NULL, chars, 0)); in TEST()
123 EXPECT_EQ(5U, wcstombs(NULL, chars, 4)); in TEST()
124 EXPECT_EQ(5U, wcstombs(NULL, chars, 256)); in TEST()
125 src = chars; in TEST()
127 EXPECT_EQ(&chars[0], src); in TEST()
128 src = chars; in TEST()
130 EXPECT_EQ(&chars[0], src); in TEST()
131 src = chars; in TEST()
133 EXPECT_EQ(&chars[0], src); in TEST()
158 EXPECT_EQ(0U, wcstombs(bytes, chars, 0)); in TEST()
160 EXPECT_EQ(4U, wcstombs(bytes, chars, 4)); in TEST()
164 EXPECT_EQ(5U, wcstombs(bytes, chars, 256)); in TEST()
167 EXPECT_EQ(5U, wcstombs(bytes, chars, 6)); in TEST()
178 src = chars; in TEST()
180 EXPECT_EQ(&chars[0], src); // No input consumed. in TEST()
184 src = chars; in TEST()
186 EXPECT_EQ(&chars[4], src); // Some input consumed. in TEST()
192 src = chars; in TEST()
199 src = chars; in TEST()
215 src = chars; in TEST()