Lines Matching refs:bytes

30     char bytes[MB_LEN_MAX];
31 memset(bytes, 0, sizeof(bytes));
32 size_t result = c16rtomb(bytes, L'h', NULL);
36 if (bytes[0] != 'h') {
37 t_error("%s bytes[0] is %c, not \'h\'\n", bytes[0]);
47 memset(bytes, 0, sizeof(bytes));
48 result = c16rtomb(bytes, L'h', NULL);
52 if (bytes[0] != 'h') {
53 t_error("%s bytes[0] is %c, not \'h\'\n", bytes[0]);
57 memset(bytes, 0, sizeof(bytes));
58 result = c16rtomb(bytes, 0x00a2, NULL);
62 if (bytes[0] != '\xc2') {
63 t_error("%s bytes[0] is %c, not \'\\xc2\'\n", bytes[0]);
65 if (bytes[1] != '\xa2') {
66 t_error("%s bytes[0] is %c, not \'\\xa2\'\n", bytes[1]);
70 memset(bytes, 0, sizeof(bytes));
71 result = c16rtomb(bytes, 0x20ac, NULL);
75 if (bytes[0] != '\xe2') {
76 t_error("%s bytes[0] is %c, not \'\\xe2\'\n", bytes[0]);
78 if (bytes[1] != '\x82') {
79 t_error("%s bytes[0] is %c, not \'\\x82\'\n", bytes[1]);
81 if (bytes[2] != '\xac') {
82 t_error("%s bytes[0] is %c, not \'\\xac\'\n", bytes[2]);
111 char bytes[MB_LEN_MAX];
112 memset(bytes, 0, sizeof(bytes));
113 size_t result = c16rtomb(bytes, 0xdbea, NULL);
126 char bytes[MB_LEN_MAX];
127 memset(bytes, 0, sizeof(bytes));
128 size_t result = c16rtomb(bytes, 0xdfcd, NULL);
133 if (bytes[0] != '\xf4') {
134 t_error("%s bytes[0] is %c, not \'\\xf4\'\n", bytes[0]);
136 if (bytes[1] != '\x8a') {
137 t_error("%s bytes[0] is %c, not \'\\x8a\'\n", bytes[1]);
139 if (bytes[2] != '\xaf') {
140 t_error("%s bytes[0] is %c, not \'\\xaf\'\n", bytes[2]);
142 if (bytes[3] != '\x8d') {
143 t_error("%s bytes[0] is %c, not \'\\x8d\'\n", bytes[3]);
154 char bytes[MB_LEN_MAX];
155 memset(bytes, 0, sizeof(bytes));
156 size_t result = c16rtomb(bytes, 0xdfcd, NULL);