Lines Matching refs:ret
107 int ret; in unicode_test_string16() local
142 ret = snprintf(buf, 4, "%ls", c1); in unicode_test_string16()
143 ut_asserteq(6, ret); in unicode_test_string16()
147 ret = snprintf(buf, 6, "%ls", c2); in unicode_test_string16()
149 ut_asserteq(9, ret); in unicode_test_string16()
152 ret = snprintf(buf, 7, "%ls", c2); in unicode_test_string16()
154 ut_asserteq(9, ret); in unicode_test_string16()
157 ret = snprintf(buf, 8, "%ls", c3); in unicode_test_string16()
159 ut_asserteq(9, ret); in unicode_test_string16()
162 ret = snprintf(buf, 11, "%ls", c4); in unicode_test_string16()
164 ut_asserteq(12, ret); in unicode_test_string16()
167 ret = snprintf(buf, 4, "%ls", c4); in unicode_test_string16()
169 ut_asserteq(12, ret); in unicode_test_string16()
673 int ret; in unicode_test_utf_to_cp() local
677 ret = utf_to_cp(&c, codepage_437); in unicode_test_utf_to_cp()
678 ut_asserteq(0, ret); in unicode_test_utf_to_cp()
682 ret = utf_to_cp(&c, codepage_437); in unicode_test_utf_to_cp()
683 ut_asserteq(0, ret); in unicode_test_utf_to_cp()
687 ret = utf_to_cp(&c, codepage_437); in unicode_test_utf_to_cp()
688 ut_asserteq(0, ret); in unicode_test_utf_to_cp()
692 ret = utf_to_cp(&c, codepage_437); in unicode_test_utf_to_cp()
693 ut_asserteq(-ENOENT, ret); in unicode_test_utf_to_cp()
703 int ret; in utf8_to_cp437_stream_helper() local
707 ret = utf8_to_cp437_stream(*in, buffer); in utf8_to_cp437_stream_helper()
708 if (ret) in utf8_to_cp437_stream_helper()
709 *out++ = ret; in utf8_to_cp437_stream_helper()
734 int ret; in utf8_to_utf32_stream_helper() local
738 ret = utf8_to_utf32_stream(*in, buffer); in utf8_to_utf32_stream_helper()
739 if (ret) in utf8_to_utf32_stream_helper()
740 *out++ = ret; in utf8_to_utf32_stream_helper()
806 size_t ret, expected; in unicode_test_u16_strlcat() local
811 ret = u16_strlcat(buf, &null_src, ARRAY_SIZE(buf)); in unicode_test_u16_strlcat()
812 ut_asserteq(0, ret); in unicode_test_u16_strlcat()
816 ret = u16_strlcat(buf, src, ARRAY_SIZE(buf)); in unicode_test_u16_strlcat()
817 ut_asserteq(4, ret); in unicode_test_u16_strlcat()
824 ret = u16_strlcat(buf, &null_src, ARRAY_SIZE(buf)); in unicode_test_u16_strlcat()
825 ut_asserteq(5, ret); in unicode_test_u16_strlcat()
833 ret = u16_strlcat(buf, src, i); in unicode_test_u16_strlcat()
834 ut_asserteq(expected, ret); in unicode_test_u16_strlcat()