Vadim Zeitlin
a815cb29f2
removed (now) unnecessary errno.h include
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-30 02:42:39 +00:00
Vadim Zeitlin
b1727cfef7
don't expect errno to be set to EOVERFLOW if vsnprintf() fails
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-29 22:59:02 +00:00
Vadim Zeitlin
17a1ebd101
first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
c15b8bfd6f
qsort() should be passedonly extern C functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-13 14:35:50 +00:00
Włodzimierz Skiba
7448de8d8d
[1231183] 'cleanup: mismatched indentation' and other cleanings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 17:08:42 +00:00
Włodzimierz Skiba
73f507f52d
Prevent crash in wxString::Mid under STL builds ( fixes #1231725 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-04 11:12:52 +00:00
Vadim Zeitlin
6c0b29749c
fixed EOVERFLOW handlign after previous commit and also explained what's going on
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-04 19:32:53 +00:00
Vadim Zeitlin
1495b91505
replace complicated OS tests with simple ifdef EOVERFLOW in wxString::PrintfV()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-04 17:14:43 +00:00
Michael Wetherell
5dc6072884
Compilation fix for djgpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-22 13:23:47 +00:00
Michael Wetherell
368bb66293
No EOVERFLOW on openbsd
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-16 17:13:14 +00:00
Włodzimierz Skiba
7220e45533
Simpler for readable diffs in future new ports.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-15 16:47:28 +00:00
Włodzimierz Skiba
ad5bb7d6a6
Sending wxChar* outputs pointer instead of text under Borland.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-13 17:53:28 +00:00
Ryan Norton
2df0258e2b
fix wxString::Replace when new strings are longer than old string
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-11 09:05:40 +00:00
Ryan Norton
92413909e8
Get rid of superflous if statement - taken care of by the following for loop
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-09 06:42:42 +00:00
Ryan Norton
510bb7480c
REWRITE wxStringBase::append and wxString::Replace.
...
This had to be done because they did not take into account null characters.
([ 1179490 ] wxString::Replace() truncates strings containing null bytes) notified me of this.
Please test and let me know of any problems!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 22:53:27 +00:00
Stefan Neis
33cc6200a8
Compilation fix for old OS/2 compilers.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-28 19:21:09 +00:00
David Elliott
d95fb7ebf8
EOVERFLOW is not available on classic Mac OS.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 04:15:30 +00:00
Julian Smart
d44d0cbd73
Added C/wxString array constructors to wxArrayString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-26 14:18:56 +00:00
Vadim Zeitlin
ce76f779c6
added wxString ctor from std::string (inside #ifdef wxUSE_STD_STRING); removed pragma interface/implementation which force all inline functions to be defined in string.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-20 15:42:41 +00:00
Włodzimierz Skiba
ba9bbf1388
'Dummy' warning fixes (might be used uninitialized).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 20:00:42 +00:00
Jouk Jansen
dbbd41ae33
Committing in .
...
OpenVMS compile support updates
Modified Files:
wxWidgets/setup.h_vms wxWidgets/src/common/descrip.mms
wxWidgets/src/common/string.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-03 12:52:43 +00:00
Włodzimierz Skiba
84f5e95e86
Don't use the 'unix-like' check for Palm.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 21:14:43 +00:00
Julian Smart
9a08c20ec2
MSW doesn't have EOVERFLOW, WinCE additionally doesn't have errno.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 11:31:20 +00:00
Ryan Norton
2c47c53728
fix for bug raised in patch [ 1145715 ] endless loop in wxString::PrintV
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 02:47:51 +00:00
Vadim Zeitlin
94ac840b49
oops, fixed crash introduced in last check in
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 22:53:22 +00:00
Vadim Zeitlin
a6ed2b09a3
set string length to 0 in AllocBeforeWrite() just to be tidy (replaces patch 1123226)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 22:46:06 +00:00
Ryan Norton
83efadb7f3
[ 1123124 ] wxStringBase::Alloc can change string length
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-18 03:53:56 +00:00
Ryan Norton
c08d805c5a
[ 1123256 ] wxString operator+ pre-allocates buffer then throws it away ---- and ---- [ 1123195 ] Avoid double-copy in two wxStringBase functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 19:12:36 +00:00
Ryan Norton
f68ca36e0d
Fix eval order of arguments...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-09 17:40:10 +00:00
Włodzimierz Skiba
eecb33b018
Old API deprecated. Use new and remove old usage where necessary.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-10 17:21:16 +00:00
Ryan Norton
2cbfa061b4
Correct mistakes in wxStripExtension - correct wxString::npos. Spurred by 1073642 filefn.cpp StripExtension(wxString &)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-01 23:55:42 +00:00
Ryan Norton
2c09fb3b8b
wxMemxxx --> wxTmemxxx, get rid of wxdocmpxxx impossible case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-21 17:44:40 +00:00
Ryan Norton
f5fb687186
final cleanup of string conversion with null characters (hopefully :))
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 08:23:50 +00:00
Ryan Norton
6e394fc623
cast fix, workaround for pickeir compilers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 16:33:47 +00:00
Ryan Norton
59059feb40
rest of 1061091, clean up define a bit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 16:06:54 +00:00
Włodzimierz Skiba
be7eecf834
Make internal type for ToAscii conversion written once but do not forget all necessary type casts (aka warning fix).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 20:22:44 +00:00
Ryan Norton
35b4f9cae1
wxdocmpnocase fixup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-04 17:47:33 +00:00
Ryan Norton
dbb6c0a968
fix const error on sane (not msvc) compilers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-31 06:13:18 +00:00
Ryan Norton
e4e3bbb447
solution to wxMBConv stuff - make a seperate XX2XX for strings of a specified length, use this in wxString instead of previous worst-case method
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-30 20:16:25 +00:00
David Elliott
c096ba5ea1
Make wxString::WorstEncodingCase take a const wxMBConv&
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-30 05:33:47 +00:00
Ryan Norton
03ff8fda8d
Add wxString::WorstEncodingCase, other various cleanups
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-29 21:06:28 +00:00
Ryan Norton
bdd8f35a58
Handle bad conversions correctly. Add Bad UTF8 test.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-29 10:13:59 +00:00
Ryan Norton
930357bd25
Handle invalid conversion slightly better, ecapsulate literal chars with wxT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-29 08:55:58 +00:00
Ryan Norton
44d271da3e
increase worst case to *4 for UTF8, switch a memcpy for wxMemcpy
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 23:01:46 +00:00
Ryan Norton
c81fc3344d
Use wxStringBufferLength instead of wxXCharBuffer in constructors with conversion. Avoids both an allocation and a memory copy in normal (non-stl) wx mode with wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 07:48:28 +00:00
Włodzimierz Skiba
7663d0d4bf
Fix to wrong order of parameters. Used wxStringBase constructor has parameters in reversed order in comparison to wxString (iirc due to stl::string compatibility).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 17:36:04 +00:00
Ryan Norton
49dcf8bfb8
crush compiler warnings and handle out of memory errors slightly better
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 02:54:32 +00:00
Ryan Norton
215f9d70dd
correct assignment in constructors, a little optimization, and some rare (impossible?) case sanity checks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-10 13:30:55 +00:00
Ryan Norton
19db911ad2
fix description
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-08 23:33:11 +00:00
Ryan Norton
063864481a
final null-char wxString stuff, a couple of bugfixes and lots of code cleanups - fixups to changes.txt as per someone's suggestions - support for a lot more stock cursors on wxCocoa using the cursors from the carbon port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-08 23:19:39 +00:00