31#define UTF8_INIT "This is a test of UTF-8: ü‱☺😕😱"
51 UTF8 utf8_copied_from_stdstr = str;
55 UTF8 utf8_copied_from_utf8 = utf8_inited;
67 wxString wx_inited = wxString::FromUTF8(
UTF8_INIT );
70 wxString wx_copied_from_utf8 = utf8_inited;
74 UTF8 utf8_copied_from_wxstring = wx_inited;
87 BOOST_CHECK( it == null );
91 BOOST_CHECK( uNull.ubegin() == uNull.uend() );
99 UTF8 u0 {
"inp\ua740t" };
107 BOOST_CHECK( it == begin );
108 BOOST_CHECK( it >= begin );
115 BOOST_CHECK( it != begin );
116 BOOST_CHECK( it > begin );
117 BOOST_CHECK( !( begin >= it ) );
118 BOOST_CHECK( it <
end );
119 BOOST_CHECK( it <=
end );
136 BOOST_CHECK( it ==
end );
137 BOOST_CHECK( it <=
end );
138 BOOST_CHECK( !( it <
end ) );
uni_iter is a non-mutating iterator that walks through unicode code points in the UTF8 encoded string...
An 8 bit string that is assuredly encoded in UTF8, and supplies special conversion support to and fro...
BOOST_CHECK_EQUAL(ret, c.m_exp_result)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(Utf8AndStdString)
Declares a struct as the Boost test fixture.