Lines Matching refs:res
400 cdecvt_type::result res = cdect.in(state, from.data(), from.data() + from.size(), next_from, in in_out_test() local
402 CPPUNIT_ASSERT( res == cdecvt_type::ok ); in in_out_test()
414 … cdecvt_type::result res = cdect.out(state, from.data(), from.data() + from.size(), next_from, in in_out_test() local
416 CPPUNIT_ASSERT( res == cdecvt_type::ok ); in in_out_test()
444 int res = cdect.length(state, from.data(), from.data() + from.size(), from.size()); in length_test() local
445 CPPUNIT_ASSERT( (size_t)res == from.size() ); in length_test()
536 codecvt_base::result res; in special_encodings() local
546 res = cvt.in(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), from_next, in special_encodings()
548 CPPUNIT_ASSERT( res == codecvt_base::ok ); in special_encodings()
557 res = cvt.out(state, cp936_wstr.data(), cp936_wstr.data() + cp936_wstr.size(), from_next, in special_encodings()
559 CPPUNIT_ASSERT( res == codecvt_base::ok ); in special_encodings()
576 codecvt_base::result res; in special_encodings() local
586 res = cvt.in(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), from_next, in special_encodings()
588 CPPUNIT_ASSERT( res == codecvt_base::ok ); in special_encodings()
600 res = cvt.in(state, from, from + length, from_next, in special_encodings()
602 switch (res) { in special_encodings()
632 res = cvt.out(state, utf8_wstr.data(), utf8_wstr.data() + utf8_wstr.size(), from_next, in special_encodings()
634 CPPUNIT_ASSERT( res == codecvt_base::ok ); in special_encodings()
644 res = cvt.in(state, bad_utf8_str.data(), bad_utf8_str.data() + bad_utf8_str.size(), from_next, in special_encodings()
646 CPPUNIT_ASSERT( res == codecvt_base::error ); in special_encodings()