Václav Slavík
7892b9436c
compilation fix for BC++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-27 11:16:51 +00:00
Mattia Barbon
e87b783352
Create a new wxStringBase class, providing a STL-like API, using
...
the current wxString implementation.
Derive wxString from one of wxStringBase, std::string, std::wstring
depending on wxUSE_STL/wxUSE_UNICODE settings. wxString provides
full compatibility with the old wxString in both wxUSE_STL=0 and
wxUSE_STL=1 modes (except for [Un]getWriteBuffer).
Add some configure checks for std::string features.
Add tests for STL API in console sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-24 19:44:57 +00:00
Julian Smart
0be9ace27e
Added RTL functions missing from WinCE to wxchar.h/cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-15 13:46:39 +00:00
Mattia Barbon
22a5055f1f
Multilib linking fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-12 02:22:22 +00:00
Julian Smart
4676948b68
More WinCE mods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 21:50:07 +00:00
Julian Smart
b1e4e7cc96
Oops, no such function as wxIsascii
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 11:28:11 +00:00
Julian Smart
1c193821a9
More WinCE mods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 11:21:47 +00:00
Vadim Zeitlin
251a8ce858
set string length properly in wxString(p, conv, len) ctor (patch 755593)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 12:13:49 +00:00
Vadim Zeitlin
50dee7e0eb
make string at least empty (instead of containing garbage) if malloc() failed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 12:07:53 +00:00
Mattia Barbon
6c44548a8f
Compilation fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 20:25:26 +00:00
Mattia Barbon
df5168c427
Added --use-stl to cnfigure, wxUSE_STL to setup0.h
...
Moved wx/datetime.inl contents to wx/datetime.h and removed
inline redefinition hack.
Implemented STL-like interface on top of wxList/wxArray, when wxUSE_STL=0.
Implemented wxList-like and wxArray interfaces on top of std::list and
std::vector, when wxUSE_STL=1.
Added arrstr.h, moved wxArrayString declaration there; string.h
#includes arrstr.h only if WXWIN_COMPATIBILITY_2_4 is enabled.
Added WX_CLEAR_HASH_MAP, WX_CLEAR_HASH_TABLE, WX_CLEAR_LIST macros,
to clear a wxHashMap, wxHashTable, wxList containing pointers: deletes
pointers and makes container zero-sized.
When wxUSE_STL=1, wxStringList works like a std::list<wxString>.
Made wxBase compile when wxUSE_STL=1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 19:52:35 +00:00
Mattia Barbon
fd3f01603a
wxArrayString::Sort(bool) not deprecated (yet).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-04 09:01:46 +00:00
Mattia Barbon
ba8c160144
Moved some methods/classes inside COMPATIBILITY_2_4.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-03 21:59:55 +00:00
Václav Slavík
fd24237519
fixed to make wxBase DLL compile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 12:50:48 +00:00
Vadim Zeitlin
a8f1f1b23b
check parmateres in Replace() (bug 752716)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-15 19:33:04 +00:00
Robin Dunn
8760bc6529
Put terminating NUL in the buffer since MB2WC doesn't do it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 00:43:21 +00:00
Gilles Depeyrot
8ecf21b7db
improved deallocation fix for Visual C++ Multithreaded non DLL runtime
...
so that it only has a performance impact on wxString in this configuration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-29 14:03:37 +00:00
Gilles Depeyrot
ca5e07c768
VC++ free must take place in same DLL as allocation when using non dll
...
run-time library (e.g. Multithreaded instead of Multithreaded DLL)
we must not inline wxStringData deallocation since allocation is not inlined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-28 21:11:17 +00:00
Julian Smart
083f7497d3
Applied some of patch [ 688466 ] MSVC7 build & bug fixes
...
by Darren Whobrey
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-02 11:10:37 +00:00
Julian Smart
55d99c7a77
Fixed copyrights and licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:28:33 +00:00
Julian Smart
eaa6418668
Removed redundant <search.h> inclusion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-07 16:49:22 +00:00
Julian Smart
5283098e13
Applied patch [ 662321 ] Port of wxWindows to Wine
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-07 13:49:08 +00:00
Julian Smart
368c9c6d84
Applied some of patch [ 650957 ] wxWinCE diff-0.0.4
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-10 12:13:25 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Stefan Neis
a1db4ad4a4
Fixed bug in Grow function (possibly not allocating enough memory if starting
...
with empty array).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-11 10:29:28 +00:00
Vadim Zeitlin
f6f5941be5
reorganized, improved and hopefully simplified wxchar.h and printf() functions handling; also added wxWcslen() to fix wcslen() problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 17:13:44 +00:00
Vadim Zeitlin
e015c2a31f
rewrote wxString::To/FromAscii() to fix a few small problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 15:09:27 +00:00
Robert Roebling
5f1d306901
%s to %ls conversion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-17 12:11:03 +00:00
Robert Roebling
b1ac3b56e6
Added wxString::FromAscii() wxString::ToAscii().
...
Removed wxConvFile, made it a define wxConvLocal.
Exchanged some wxConvLibc to wxConvLocal calls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-11 13:09:57 +00:00
Robert Roebling
a59c124d06
Implemented the various printf() functions under
...
Unicode with their GNU libc 2.2 funtions. This
saves us some unicode<->ansi conversion and we
no longer need the experimental printf() code
in string.cpp. I had to implement wxSprintf()
using wxSnprintf() as the former doesn't exist
in Unicode GNU libc 2.2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-10 11:58:15 +00:00
Gilles Depeyrot
b1801e0eb8
improved out of memory handling by return failure status where possible and
...
adding asserts in debug mode (suggested by SourceForge patch # 544906)
corrected warnings when compiling with -Wall -W
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-08 14:11:40 +00:00
Vadim Zeitlin
2a39c38627
wxArray(int n) mods for wxArrayString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-27 20:02:17 +00:00
Vadim Zeitlin
ab0d42f76d
fixed typo in wxString::swap() which was completely broken
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-25 18:19:26 +00:00
Vadim Zeitlin
538f35ccf4
use base 10 by default in wxString::To[U]Long
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-20 13:24:19 +00:00
Vadim Zeitlin
5737d05f86
fixed <strings.h> include and also removed the obsolete WXSTRING_IS_WXOBJECT setting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-15 15:06:17 +00:00
Vadim Zeitlin
8a9d5e5a73
removed assert(size != 0) from wxArrayString::Alloc(size) as it was inconsistent with wxArray::Alloc() and wxString::Alloc()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-26 23:53:47 +00:00
Václav Slavík
1c2e6a2812
added length argument to wxString::wxString(wchar_t*), just like in case of wxChar* one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-23 00:14:10 +00:00
Vadim Zeitlin
0fe1f685b4
tried to make wxArrayString(bool autosort) ctor more explicit, e.g. prevent it from being used in implicit conversions from char * to wxArrayString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-20 15:20:17 +00:00
Vadim Zeitlin
903506828b
fixes for the compilation warnings with Sun CC:
...
1. some fixes for "String literal to char * conversion" warnings (many
more left in the *.xpm files)
2. fixes for "assignment of function to extern "C" function"
3. a few other miscellaneous ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-09 12:49:12 +00:00
Ron Lee
9d155f504e
Added GetStringArray method.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-24 11:16:46 +00:00
Václav Slavík
783fab59e5
a mistake; djgpp doesn't have vsnprintf at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-16 20:35:22 +00:00
Václav Slavík
147043343e
DJGPP compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-15 23:17:56 +00:00
Vadim Zeitlin
d6044f582c
don't use wxRegEx in wxString::Matches
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-03 00:11:53 +00:00
Vadim Zeitlin
19a2deddc5
fixed bugs in rfind() (patch 481325)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-13 18:50:05 +00:00
Vadim Zeitlin
eb749c3e37
fixed wxString::resize() which was completely broken
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-02 18:17:38 +00:00
Vadim Zeitlin
71e030352d
1. added wxStatusBarUniv
...
2. several bug fixes to wxSpinButton/wxSpinCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-14 21:38:58 +00:00
Vadim Zeitlin
4eb438cf7c
added base parameter to wxString::To[U]Long
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-12 20:26:48 +00:00
Vadim Zeitlin
337a001037
fix for Solaris realloc() which moves the memory block even when the block size is reduced
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-12 17:29:19 +00:00
Vadim Zeitlin
b3e8d00ab0
1. made description of some options in configure [hopefully] more readable
...
2. got rid of --enable-wcsrtombs option, configure can find it out itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-28 13:34:12 +00:00
David Webster
75ad8febf6
patch fix for a constant definition under OS/2 VA V4.0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-24 19:17:16 +00:00