#pragma hdrstop
#endif
+#if wxUSE_UNICODE
+
#include "wx/convauto.h"
#include "wx/mstream.h"
//
// the length of the string may need to be passed explicitly if it has
// embedded NULs, otherwise it's not necessary
- void TestFirstChar(const char *src, wchar_t wch, int len = wxNO_LEN);
+ void TestFirstChar(const char *src, wchar_t wch, size_t len = wxNO_LEN);
void Empty();
void Short();
// register in the unnamed registry so that these tests are run by default
CPPUNIT_TEST_SUITE_REGISTRATION(ConvAutoTestCase);
-// also include in it's own registry so that these tests can be run alone
+// also include in its own registry so that these tests can be run alone
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(ConvAutoTestCase, "ConvAutoTestCase");
// ----------------------------------------------------------------------------
// tests
// ----------------------------------------------------------------------------
-void ConvAutoTestCase::TestFirstChar(const char *src, wchar_t wch, int len)
+void ConvAutoTestCase::TestFirstChar(const char *src, wchar_t wch, size_t len)
{
wxWCharBuffer wbuf = wxConvAuto().cMB2WC(src, len, NULL);
CPPUNIT_ASSERT( wbuf );
"\0\0\x03\xB2",
20, line1, line2);
}
+
+#endif // wxUSE_UNICODE