Lines Matching refs:c16rtomb
30 * Test program for c16rtomb() as specified by ISO/IEC 9899:2011.
69 * c16rtomb() resets its internal state.
71 ATF_REQUIRE(c16rtomb(NULL, L'\0', NULL) == 1);
72 ATF_REQUIRE(c16rtomb(NULL, 0xdc00, NULL) == 1);
77 ATF_REQUIRE(c16rtomb(buf, 0, &s) == 1);
81 ATF_REQUIRE(c16rtomb(NULL, L'\0', NULL) == 1);
82 ATF_REQUIRE(c16rtomb(NULL, L'A', NULL) == 1);
87 ATF_REQUIRE(c16rtomb(buf, L'A', &s) == 1);
93 ATF_REQUIRE(c16rtomb(buf, 0xd83d, &s) == 0);
94 ATF_REQUIRE(c16rtomb(buf, 0xdca9, &s) == (size_t)-1);
108 ATF_REQUIRE(c16rtomb(buf, 0x20ac, &s) == (size_t)-1);
122 ATF_REQUIRE(c16rtomb(buf, 0x20ac, &s) == 1);
135 ATF_REQUIRE(c16rtomb(buf, 0xd83d, &s) == 0);
136 ATF_REQUIRE(c16rtomb(buf, 0xdca9, &s) == 4);
144 ATF_REQUIRE(c16rtomb(buf, 0xd83d, &s) == 0);
145 ATF_REQUIRE(c16rtomb(buf, L'A', &s) == (size_t)-1);
152 ATF_REQUIRE(c16rtomb(buf, 0xdca9, &s) == (size_t)-1);