Lines Matching refs:nchars

604   constexpr size_t nchars = 32;  in TEST()  local
605 wchar_t buf[nchars]; in TEST()
607 ASSERT_EQ(2, swprintf(buf, nchars, L"ab")) << strerror(errno); in TEST()
609 ASSERT_EQ(5, swprintf(buf, nchars, L"%s", "abcde")); in TEST()
617 ASSERT_EQ(12, swprintf(buf, nchars, L"%s", kString)); in TEST()
624 constexpr size_t nchars = 32; in TEST() local
625 wchar_t buf[nchars]; in TEST()
627 ASSERT_EQ(20, swprintf(buf, nchars, L"%a", 3.1415926535)); in TEST()
632 constexpr size_t nchars = 32; in TEST() local
633 wchar_t buf[nchars]; in TEST()
636 EXPECT_EQ(3, swprintf(buf, nchars, L"<%lc>", wc)); in TEST()
641 constexpr size_t nchars = 32; in TEST() local
642 wchar_t buf[nchars]; in TEST()
645 EXPECT_EQ(3, swprintf(buf, nchars, L"<%C>", wc)); in TEST()
650 constexpr size_t nchars = 32; in TEST() local
651 wchar_t buf[nchars]; in TEST()
653 swprintf(buf, nchars, L"%jd", INTMAX_MAX); in TEST()
658 constexpr size_t nchars = 32; in TEST() local
659 wchar_t buf[nchars]; in TEST()
661 swprintf(buf, nchars, L"%jd", INTMAX_MIN); in TEST()
666 constexpr size_t nchars = 32; in TEST() local
667 wchar_t buf[nchars]; in TEST()
669 swprintf(buf, nchars, L"%ju", UINTMAX_MAX); in TEST()
674 constexpr size_t nchars = 32; in TEST() local
675 wchar_t buf[nchars]; in TEST()
677 swprintf(buf, nchars, L"%1$ju", UINTMAX_MAX); in TEST()
682 constexpr size_t nchars = 32; in TEST() local
683 wchar_t buf[nchars]; in TEST()
686 ASSERT_EQ(12, swprintf(buf, nchars, L"%ls", kWideString)); in TEST()
693 constexpr size_t nchars = 32; in TEST() local
694 wchar_t buf[nchars]; in TEST()
697 ASSERT_EQ(12, swprintf(buf, nchars, L"%S", kWideString)); in TEST()