+void CrtTestCase::Strpbrk()
+{
+ const wxString s(", ");
+
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strMB, ", ") );
+ CPPUNIT_ASSERT_EQUAL( L',', *wxStrpbrk(strWC, L", ") );
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strWX, ", ") );
+ CPPUNIT_ASSERT_EQUAL( L',', *wxStrpbrk(strWX, L", ") );
+
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strMB, s) );
+ CPPUNIT_ASSERT_EQUAL( L',', *wxStrpbrk(strWC, s) );
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strWX, s) );
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strWX.c_str(), s) );
+
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strMB, s.c_str()) );
+ CPPUNIT_ASSERT_EQUAL( L',', *wxStrpbrk(strWC, s.c_str()) );
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strWX, s.c_str()) );
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strWX.c_str(), s.c_str()) );
+
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strMB, s.mb_str()) );
+ CPPUNIT_ASSERT_EQUAL( L',', *wxStrpbrk(strWC, s.wc_str()) );
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strWX, s.mb_str()) );
+ CPPUNIT_ASSERT_EQUAL( L',', *wxStrpbrk(strWX, s.wc_str()) );
+ CPPUNIT_ASSERT_EQUAL( ',', *wxStrpbrk(strWX.c_str(), s.mb_str()) );
+ CPPUNIT_ASSERT_EQUAL( L',', *wxStrpbrk(strWX.c_str(), s.wc_str()) );
+
+ CPPUNIT_ASSERT( !wxStrpbrk(strWX, "xyz") );
+ CPPUNIT_ASSERT( !wxStrpbrk(strWX.c_str(), L"xyz") );
+}