• Home
  • Raw
  • Download

Lines Matching refs:cvt

51 bool test_to(boost::locale::util::base_converter &cvt,char const *s,unsigned codepoint)  in test_to()  argument
55 return cvt.to_unicode(s,end) == codepoint; in test_to()
58 bool test_from(boost::locale::util::base_converter &cvt,unsigned codepoint,char const *str) in test_from() argument
61 unsigned res = cvt.from_unicode(codepoint,buf,buf+sizeof(buf)); in test_from()
70 bool test_incomplete(boost::locale::util::base_converter &cvt,unsigned codepoint,int len) in test_incomplete() argument
73 unsigned res = cvt.from_unicode(codepoint,buf,buf+len); in test_incomplete()
79 #define TEST_TO(str,codepoint) TEST(test_to(*cvt,str,codepoint))
80 #define TEST_FROM(str,codepoint) TEST(test_from(*cvt,codepoint,str))
81 #define TEST_INC(codepoint,len) TEST(test_incomplete(*cvt,codepoint,len))
85 boost::locale::hold_ptr<boost::locale::util::base_converter> cvt(pcvt); in test_shiftjis() local
119 std::unique_ptr<base_converter> cvt; in main() local
121 std::auto_ptr<base_converter> cvt; in main() local
129 cvt = std::move(create_utf8_converter_unique_ptr()); in main()
131 cvt = create_utf8_converter(); in main()
134 TEST(cvt.get()); in main()
135 TEST(cvt->is_thread_safe()); in main()
136 TEST(cvt->max_len() == 4); in main()
265 cvt = std::move(create_simple_converter_unique_ptr("windows-1255")); in main()
267 cvt = create_simple_converter("windows-1255"); in main()
270 TEST(cvt.get()); in main()
271 TEST(cvt->is_thread_safe()); in main()
272 TEST(cvt->max_len() == 1); in main()
297 cvt.reset(boost::locale::impl_icu::create_uconv_converter("Shift-JIS")); in main()
298 TEST(cvt.get()); in main()
299 test_shiftjis(cvt.release()); in main()
305 cvt.reset(boost::locale::impl_posix::create_iconv_converter("Shift-JIS")); in main()
306 if(cvt.get()) { in main()
307 test_shiftjis(cvt.release()); in main()