Lines Matching refs:bytes
48 char bytes[MB_LEN_MAX];
49 memset(bytes, 1, sizeof(bytes));
51 size_t result = c32rtomb(bytes, L'\0', NULL);
55 if (bytes[0] != '\0') {
56 t_error("%s bytes[0] failed\n", __func__);
58 if (bytes[1] != '\x01') {
59 t_error("%s bytes[1] failed\n", __func__);
62 memset(bytes, 0, sizeof(bytes));
63 result = c32rtomb(bytes, L'h', NULL);
67 if (bytes[0] != 'h') {
68 t_error("%s bytes[0] failed\n", __func__);
79 char bytes[MB_LEN_MAX];
88 memset(bytes, 0, sizeof(bytes));
89 size_t result = c32rtomb(bytes, L'h', NULL);
93 if (bytes[0] != 'h') {
94 t_error("%s bytes[0] failed\n", __func__);
97 memset(bytes, 0, sizeof(bytes));
98 result = c32rtomb(bytes, 0x00a2, NULL);
102 if (bytes[0] != '\xc2') {
103 t_error("%s bytes[0] failed\n", __func__);
105 if (bytes[1] != '\xa2') {
106 t_error("%s bytes[1] failed\n", __func__);
109 memset(bytes, 0, sizeof(bytes));
110 result = c32rtomb(bytes, 0x20ac, NULL);
114 if (bytes[0] != '\xe2') {
115 t_error("%s bytes[0] failed\n", __func__);
117 if (bytes[1] != '\x82') {
118 t_error("%s bytes[1] failed\n", __func__);
120 if (bytes[2] != '\xac') {
121 t_error("%s bytes[2] failed\n", __func__);
124 memset(bytes, 0, sizeof(bytes));
125 result = c32rtomb(bytes, 0x24b62, NULL);
129 if (bytes[0] != '\xf0') {
130 t_error("%s bytes[0] failed\n", __func__);
132 if (bytes[1] != '\xa4') {
133 t_error("%s bytes[1] failed\n", __func__);
135 if (bytes[2] != '\xad') {
136 t_error("%s bytes[2] failed\n", __func__);
138 if (bytes[3] != '\xa2') {
139 t_error("%s bytes[3] failed\n", __func__);
150 char bytes[MB_LEN_MAX];
151 memset(bytes, 0, sizeof(bytes));
152 size_t result = c32rtomb(bytes, 0xffffffff, NULL);