Commit Graph

27 Commits

Author SHA1 Message Date
Vadim Zeitlin
3d156e937a Provide implementation for wxArrayString::resize().
This method was declared but not implemented in wxUSE_STL==0 build.

Also add unit test for this function.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-16 23:18:48 +00:00
Vadim Zeitlin
9a83f86094 Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
d11c9d86b6 made wxArrayString::assign(iterator, iterator) a template function; also fixed a bad bug in it: it didn't call clear(); mention existence of std::vector-like methods in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 12:09:13 +00:00
Vadim Zeitlin
e4e7977701 no need to disable DoTestSwap() for VC6 any more with latest wx/cppunit.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-22 14:33:09 +00:00
Vadim Zeitlin
93a800a95e minor icc warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-19 09:55:27 +00:00
Vadim Zeitlin
8112fbf0d7 undo the previous change, it's not needed any more now that we overload assertEquals(int,long) too and it broke VC6 compilation again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 22:30:16 +00:00
Vadim Zeitlin
9ea7a5ddb7 yet another compilation fix, this time for VC9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-01 18:05:59 +00:00
Vadim Zeitlin
fecddbaa5d disable a correct test which VC6 just doesn't want to grok (hopefully last buildbot error?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 23:23:07 +00:00
Vadim Zeitlin
10d256d6c8 attempting to fix VC6 compilation error from buildbot logs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 16:54:41 +00:00
Vadim Zeitlin
0c61ab6f66 add WX_CLEAR_ARRAY test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 12:33:34 +00:00
Vadim Zeitlin
7ee34f2be1 no changes, just use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 12:25:32 +00:00
Vadim Zeitlin
ff2201cc74 added swap() for the other arrays too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 13:51:41 +00:00
Vadim Zeitlin
9127686895 added wxArrayString::swap()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 13:35:32 +00:00
Vadim Zeitlin
35d5da677d get rid of base arrays in wxUSE_STL build, we don't need them there and deriving wxFooPtr from wxBaseArrayPtrVoid makes it iterators return void pointers instead of those of the correct type; added test case to check for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-22 01:01:56 +00:00
Vadim Zeitlin
5098c258b2 compilation fixes for VC6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-13 01:13:03 +00:00
Václav Slavík
8650108199 don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Vadim Zeitlin
abbb59e8eb added wxJoin and wxSplit functions (modified patch 1638950)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-18 14:43:41 +00:00
Vadim Zeitlin
1ffc8d7a55 define arrays of chartoo as the existing ones can't be used to store char values (bug 1572314)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 12:51:01 +00:00
Michael Wetherell
7d3b9f3abe Compile fix for 64-bit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 22:33:48 +00:00
Vadim Zeitlin
7788fc4046 Alloc() doesn't clear the array any more, for consistency with reserve()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 14:16:20 +00:00
Vadim Zeitlin
a059db11ff verify that we checked all the array elements in TestSTL(); make the number of array elements a constant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 00:44:24 +00:00
Mattia Barbon
555d0d7ef1 Correct wxArrayString::Add return value as per the documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-26 19:24:12 +00:00
Włodzimierz Skiba
e3f2384e48 Unicode markup.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-24 11:16:42 +00:00
Mattia Barbon
10dcbe6369 Fix wxSortedArray::Index() when wxUSE_STL == 1, with tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-22 13:28:49 +00:00
Ryan Norton
8899b155a1 [ 1068188 ] Precompiled header for the test program [Modified a bit]
Regen bakefiles for unit tests


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-22 05:00:19 +00:00
Václav Slavík
be2c4488bf this code was taken from console sample, preserve its copyright
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-06 12:14:05 +00:00
Václav Slavík
cf1014a2e1 moved arrays tests to testsuite (patch 927475)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 21:10:33 +00:00