Lines Matching refs:buffer
184 char buffer[8] = { 0, }; in unicode_test_utf8_put() local
188 pos = buffer; in unicode_test_utf8_put()
190 ut_asserteq(1, pos - buffer); in unicode_test_utf8_put()
191 ut_asserteq('@', buffer[0]); in unicode_test_utf8_put()
192 ut_assert(!buffer[1]); in unicode_test_utf8_put()
195 pos = buffer; in unicode_test_utf8_put()
197 ut_asserteq(2, pos - buffer); in unicode_test_utf8_put()
198 ut_asserteq_str("\xc7\xb4", buffer); in unicode_test_utf8_put()
201 pos = buffer; in unicode_test_utf8_put()
203 ut_asserteq(3, pos - buffer); in unicode_test_utf8_put()
204 ut_asserteq_str("\xe1\x9c\x81", buffer); in unicode_test_utf8_put()
207 pos = buffer; in unicode_test_utf8_put()
209 ut_asserteq(4, pos - buffer); in unicode_test_utf8_put()
210 ut_asserteq_str("\xf0\x9f\x90\xb9", buffer); in unicode_test_utf8_put()
213 pos = buffer; in unicode_test_utf8_put()
390 u16 buffer[4] = { 0, }; in unicode_test_utf16_put() local
394 pos = buffer; in unicode_test_utf16_put()
396 ut_asserteq(1, pos - buffer); in unicode_test_utf16_put()
397 ut_asserteq((u16)'@', buffer[0]); in unicode_test_utf16_put()
398 ut_assert(!buffer[1]); in unicode_test_utf16_put()
401 pos = buffer; in unicode_test_utf16_put()
403 ut_asserteq(2, pos - buffer); in unicode_test_utf16_put()
404 ut_asserteq((u16)0xd83d, buffer[0]); in unicode_test_utf16_put()
405 ut_asserteq((u16)0xdc39, buffer[1]); in unicode_test_utf16_put()
406 ut_assert(!buffer[2]); in unicode_test_utf16_put()
409 pos = buffer; in unicode_test_utf16_put()
639 char buffer[5]; in utf8_to_cp437_stream_helper() local
642 *buffer = 0; in utf8_to_cp437_stream_helper()
644 ret = utf8_to_cp437_stream(*in, buffer); in utf8_to_cp437_stream_helper()
670 char buffer[5]; in utf8_to_utf32_stream_helper() local
673 *buffer = 0; in utf8_to_utf32_stream_helper()
675 ret = utf8_to_utf32_stream(*in, buffer); in utf8_to_utf32_stream_helper()