Commit Graph

266 Commits

Author SHA1 Message Date
Vadim Zeitlin
968f291be6 added wxString::rbegin() and rend()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 15:03:57 +00:00
Vadim Zeitlin
e6a87338f0 name the test just MBConv instead of MBConvTestCase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 21:03:25 +00:00
Vadim Zeitlin
1fc9e0d31e name the test just Unicode instead of UnicodeTestCase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 19:59:27 +00:00
Vadim Zeitlin
d31a29b566 rebaked after adding convautotest.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 15:07:06 +00:00
Vadim Zeitlin
a29cce78aa tests for wxConvAuto
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 14:38:42 +00:00
Vadim Zeitlin
5c763f5a23 corrected mistake in the UTF-16 test on big endian machines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 14:25:59 +00:00
Vadim Zeitlin
0739e2eef9 Apple gcc compilation fixes: for it size_t and unsigned are not the same type for some reason
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 20:18:33 +00:00
Vadim Zeitlin
72b2fc5c80 properly terminate UTF-32 test string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 20:02:33 +00:00
Vadim Zeitlin
33366127e8 added filename comparison test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 15:02:56 +00:00
Vadim Zeitlin
a7823b26b0 added UTF-32 test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 14:06:50 +00:00
Vadim Zeitlin
2877b82808 added test UTF-16 string with embedded NUL NUL which makes the current code fail
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 14:01:18 +00:00
Vadim Zeitlin
f98452a969 added test UTF-16 string with embedded NUL NUL not terminating the string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 13:45:58 +00:00
Vadim Zeitlin
a905bdb8a4 let the UTF7 test fail but not crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 15:53:55 +00:00
Vadim Zeitlin
fb86a4bb69 regenerated to add textfiletest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 14:04:59 +00:00
Vadim Zeitlin
7e0a8463eb made DoTestConversion() work with strings containing NULs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 03:24:23 +00:00
Vadim Zeitlin
2229d9b30b added missing licence information
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 21:14:40 +00:00
Vadim Zeitlin
5975f1982d added UTF16 test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 20:25:20 +00:00
Vadim Zeitlin
b0441359ca test predefined wxConvUTF[78] too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 19:30:34 +00:00
Vadim Zeitlin
7ce0c58f8d the expected test result was wrong, corrected; also define a manifest constant only once instead of using its value everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 19:24:23 +00:00
Vadim Zeitlin
6ef5a7a370 fixed if/idef wxHAVE_U_ESCAPE mixup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 19:15:46 +00:00
Vadim Zeitlin
ed177375b2 use wxHAVE_U_ESCAPE to accomodate old compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:43:10 +00:00
Vadim Zeitlin
8da7a00a94 enable tests using \u escapes for VC7; replaced compiler version checks for this with wxHAVE_U_ESCAPE defined once and for all in testprec.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:42:26 +00:00
Vadim Zeitlin
a65ca3e600 moved wide char conversion tests to their own file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:10:07 +00:00
Vadim Zeitlin
ede838eb4d removed wxTextFile test case, what was it doing here?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:07:25 +00:00
Vadim Zeitlin
93a57d19fe added tests for UTF8 and UTF16 files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 14:26:59 +00:00
Vadim Zeitlin
18230eb6b6 Unicode compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 13:58:01 +00:00
Vadim Zeitlin
468c5a97ec added unit test for wxTextFile (reading only for now)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 13:46:38 +00:00
Vadim Zeitlin
8605eb1abe added ParseDate() tests; use CPPUNIT_ASSERT_EQUAL to see the dates in cppunit output
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 16:21:18 +00:00
Michael Wetherell
b26ed94e4f The cyrillic characters used in the CaseChanges() test have different values
on different platforms depending on the cyrillic character set used. So try
generating these from the Unicode instead of using fixed values.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 21:16:45 +00:00
Michael Wetherell
0c09451870 Warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 21:16:10 +00:00
Michael Wetherell
1d805c1468 Fix for 64-bit systems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 12:59:37 +00:00
Michael Wetherell
fec7aeabc1 Check encoding names case insensitively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 12:58:50 +00:00
Vadim Zeitlin
216a72f3b9 added support for 64 bit ints in wx stream classes (patch 1203970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 16:51:34 +00:00
Vadim Zeitlin
34af0de434 compilation fixes for wxUSE_DATETIME==0 (another part of patch 1203970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 16:20:28 +00:00
Vadim Zeitlin
cf9b63b38a regenerated all makefiles with bakefile 0.2.0; removed REZ option from config.bkl as it's now defined by bakefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-10 19:27:51 +00:00
Vadim Zeitlin
1bfb73b877 added wxRect::CentreIn()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-10 00:01:19 +00:00
Vadim Zeitlin
97ad053bff more standard (although less RFC-conformant) treatment of file: URIs (patch 1415189)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 03:09:36 +00:00
Roger Gammans
42b62acfc2 Add flags to test dates struct which allow us to skip ecpected failures.
Use new flags feature to allow us to test format dates outside the two digit
 year parse range.
 Add dates to test for sf.net bug #1357272 and a couple of related issues.
  (eg,6Feb{1856,1857,1937}) .


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 14:05:39 +00:00
Roger Gammans
f30057dfbf Fix for compiler error with gcc 3.3.5 and cppunit 1.10.0 and
Improve readablity of test.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 14:01:37 +00:00
Michael Wetherell
9d309aad76 Rebake all the VC++ project files and makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-21 23:06:27 +00:00
Vadim Zeitlin
5ad1f9028d Unicode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-06 21:44:44 +00:00
Vadim Zeitlin
06ef151178 added GetString() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-06 21:33:39 +00:00
Vadim Zeitlin
4626c57c58 1. changed wxStringTokenizer to not modify the string we're iterating over
but to just update our position in it (makes the code much more clear)
2. added GetLastDelimiter() to make up for lack of mode combining
   wxTOKEN_RET_EMPTY_ALL and RET_DELIMS
3. documented it and added unit tests for it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-24 00:12:54 +00:00
Vadim Zeitlin
505a8c2ced added a couple more wxTOKEN_RET_DELIMS tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-24 00:01:11 +00:00
Vadim Zeitlin
8aa57160a0 even more test cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-23 23:54:50 +00:00
Vadim Zeitlin
822c2b9f65 corrected expected test results to conform to current wxTOKEN_RET_EMPTY behaviour; added the value of loop index for which the test fails to the diagnostic messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-23 23:38:22 +00:00
Vadim Zeitlin
2461117002 more test cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-23 23:27:25 +00:00
Vadim Zeitlin
53599fbbd8 Unicode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-22 00:17:22 +00:00
Vadim Zeitlin
20a34d96ef regenerated makefiles after adding tokenizer.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-22 00:11:26 +00:00
Vadim Zeitlin
423d529ccb compilation test for Unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-21 01:23:17 +00:00