Commit Graph

12 Commits

Author SHA1 Message Date
Vadim Zeitlin
68482dc584 add cache for last used position and string length to UTF-8 wxString, dramatically improving performance of the code using indices to iterate over strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-28 19:19:11 +00:00
Vadim Zeitlin
40e01f4bfa compilation fix for bcc 5.82: don't use enum for value definition, Borland doesn't use the value correctly when the template is used later then
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-15 14:16:32 +00:00
Václav Slavík
c9faa9e9a2 Fixed compilation of wxVector<T> with VC6:
* reverted VC6 hack in wxIf<>, using helper struct instead of typedef
  didn't fix compilation, only caused the compiler to crash instead
  of emitting semi-useful errors
* changed wxVector to use typedef for Ops class instead of privately
  deriving from wxIf<...>::value; this is enough to make VC6 happy



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-31 11:26:52 +00:00
Václav Slavík
04e5392a8d do the VC6 hacks only when compiling with VC6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-30 08:49:42 +00:00
Vadim Zeitlin
e6649f2d55 more VC6 fixes: nested value must be real classes, not typedefs; skeleton declaration must contain value as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 23:31:04 +00:00
Václav Slavík
7ca735413a corrected VC++ version check
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 19:50:34 +00:00
Vadim Zeitlin
986d59e27e fix compilation with VC6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 18:37:38 +00:00
Václav Slavík
d05b30e400 VC5 didn't support partial specialization either, check for VC>=7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 17:38:04 +00:00
Václav Slavík
28f0592cd9 compilation fix for VC6, it doesn't support partial template specialization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 11:26:30 +00:00
Václav Slavík
6712283cf1 fixed wxVector<T> to work with non-POD types again; added optimization to keep using (much faster) realloc with types that are movable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-22 11:29:21 +00:00
Václav Slavík
4f927337cc use full path to headers in header guards
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-21 11:56:15 +00:00
Vadim Zeitlin
0fb0ecc452 add useful headers for meta-programming checks (part of patch 1860953)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-13 01:09:40 +00:00