Lines Matching full:static_cast
53 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc32(NULL, "\xc2", 1, &ps));
54 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(out, 0x00a2, &ps));
60 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc32(NULL, "\xc2", 1, &ps));
65 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc32(NULL, "\xf0\xa4", 1, &ps));
143 EXPECT_EQ(static_cast<size_t>(-1), c16rtomb(bytes, 0xdfcd, NULL));
146 EXPECT_EQ(static_cast<size_t>(-1), c16rtomb(bytes, 0xdbea, NULL));
189 ASSERT_EQ(static_cast<char16_t>(0x00a2), out);
192 ASSERT_EQ(static_cast<char16_t>(0x20ac), out);
202 ASSERT_EQ(static_cast<size_t>(-3),
204 ASSERT_EQ(static_cast<char16_t>(0xdbea), out);
206 ASSERT_EQ(static_cast<char16_t>(0xdfcd), out);
215 ASSERT_EQ(static_cast<size_t>(-1),
225 ASSERT_EQ(static_cast<size_t>(-1),
239 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xc2", 1, ps));
241 ASSERT_EQ(static_cast<char16_t>(0x00a2), out);
244 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xe2", 1, ps));
245 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\x82", 1, ps));
247 ASSERT_EQ(static_cast<char16_t>(0x20ac), out);
250 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xf4", 1, ps));
251 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\x8a\xaf", 2, ps));
252 ASSERT_EQ(static_cast<size_t>(-3), mbrtoc16(&out, "\x8d" "ef", 3, ps));
253 ASSERT_EQ(static_cast<char16_t>(0xdbea), out);
255 ASSERT_EQ(static_cast<char16_t>(0xdfcd), out);
259 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "\xc2", 1, ps));
260 ASSERT_EQ(static_cast<size_t>(-1), mbrtoc16(&out, "\x20" "cdef", 5, ps));
316 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(bytes, 0xffffffff, NULL));
329 ASSERT_EQ(static_cast<char32_t>(L'x'), out[0]);
334 ASSERT_EQ(static_cast<char32_t>(L'h'), out[0]);
347 ASSERT_EQ(static_cast<char32_t>(L'a'), out[0]);
350 ASSERT_EQ(static_cast<char32_t>(0x00a2), out[0]);
353 ASSERT_EQ(static_cast<char32_t>(0x20ac), out[0]);
356 ASSERT_EQ(static_cast<char32_t>(0x24b62), out[0]);
359 ASSERT_EQ(static_cast<size_t>(-1), mbrtoc32(out, "\xf8\xa1\xa2\xa3\xa4" "f", 6, NULL));
363 ASSERT_EQ(static_cast<size_t>(-1), mbrtoc32(out, "\xf0\x82\x82\xac" "ef", 6, NULL));
377 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc32(&out, "\xc2", 1, ps));
379 ASSERT_EQ(static_cast<char32_t>(0x00a2), out);
382 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc32(&out, "\xe2", 1, ps));
383 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc32(&out, "\x82", 1, ps));
385 ASSERT_EQ(static_cast<char32_t>(0x20ac), out);
388 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc32(&out, "\xf0", 1, ps));
389 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc32(&out, "\xa4\xad", 2, ps));
391 ASSERT_EQ(static_cast<char32_t>(0x24b62), out);
395 ASSERT_EQ(static_cast<size_t>(-2), mbrtoc32(&out, "\xc2", 1, ps));
396 ASSERT_EQ(static_cast<size_t>(-1), mbrtoc32(&out, "\x20" "cdef", 5, ps));