Vadim Zeitlin
969d318c6a
find_first/last_[not]_of() functions added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 12:41:28 +00:00
Julian Smart
0f3e3e0c30
Misc. fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 14:49:40 +00:00
Julian Smart
6776a0b25c
Some doc corrections; various small fixes for Cygwin and BC++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-06 08:38:01 +00:00
Ove Kaaven
a55268db33
cWX2MB and cMB2WX should be available even when without wchar_t.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 14:20:05 +00:00
Ove Kaaven
c50c1ddcb2
Should compile better if wchar_t is not available.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 17:14:48 +00:00
Robert Roebling
e5ea3f7a96
added check for GTK 1.2
...
added symbol __WXGTK12__ (do not use GTK_MINOR_VERSION in your code
as this is undefined anywhere outside wxGTK itself)
updated wxGTK.spec for local builds
fixed clipboard clear/setdata race
test for wxConvLocal in dialogs sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 20:48:39 +00:00
Ove Kaaven
5f709e6725
Changed capitalization style of wxConv*
...
(e.g. wxConv_current is now wxConvCurrent, although I put some #defines
in to still have it compile)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 18:18:30 +00:00
Ove Kaaven
6f841509ce
Uses wxUSE_WCHAR_T for compilers that don't support wchar_t.
...
Added wx_str() and WXCSTRINGCAST, which should be explicitly defined
to work on wxChar (doesn't look like people want c_str() to be
unconditionally defined as wxChar).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-25 12:42:55 +00:00
Ove Kaaven
d9e89b159c
cMB2WX and cWX2MB accepts null pointers.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 12:21:03 +00:00
Ove Kaaven
111edd48cc
Hmm, seems Borland also doesn't want wchar_t in fopen() and friends
...
(correct me if I'm wrong?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 18:27:51 +00:00
Ove Kaaven
551df6f246
New private SetName method in wxCSConv...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 22:51:21 +00:00
Brian Macy
c6cee67252
Changed some parameters to be const references
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 18:27:29 +00:00
Ove Kaaven
b2219150ca
Hm, better make the operators inline.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 16:41:05 +00:00
Ove Kaaven
bf88baa63e
Needed the reverse operator+ too...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 12:49:47 +00:00
Ove Kaaven
028a2b5d53
operator+(const wxString&, const wx[W]CharBuffer)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 12:24:26 +00:00
Ove Kaaven
a86f1d4a7d
Slightly better style?
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 18:07:30 +00:00
Ove Kaaven
3a309a64d7
Another inline constructor to facilitate Unicode conversion without #if-ing...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 15:13:26 +00:00
Vadim Zeitlin
2f000c959a
GTK 1.0.x compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 13:53:00 +00:00
Ove Kaaven
a69f7aa823
More helpful Unicode stuff.
...
Conversion classes are now:
wxConv_libc (standard mbstowcs/wcstombs)
wxConv_file (usually same as above, but I think some Asian locales
use different encoding systems on the filenames than on the contents
of the files)
wxConv_UTF7 (7-bit Unicode encoding (similar to BASE64), for email etc,
not implemented yet)
wxConv_UTF8 (8-bit Unicode encoding, not implemented yet, just uses
mbstowcs/wcstombs, which just happens to be UTF-8 in glibc2)
wxConv_gdk (gdk_mbstowcs/gdk_wcstombs, not too useful)
wxConv_local (current 8-bit character set, from LANG env var)
wxConv_current: pointer to conversion class. Points by default to
wxConv_local, but it's meant to be able to be redirected by the user
(and wxGTK can point it at wxConv_UTF8 if it manages to set the UTF-8
locale).
mbc_str() returns mb_str(*wxConv_current) for convenience.
I will use mbc_str() in my upcoming wxGTK adaption.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 19:56:54 +00:00
Ove Kaaven
d41bba9157
wxMBConv derived classes and instances.
...
Added wxConv_gdk (wrapper for gdk_mbstowcs and gdk_wcstombs, which use
X calls instead of libc calls), which should probably not be used, but is
now there for completeness, and in case it's useful after all.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 14:36:58 +00:00
Ove Kaaven
111bb7f2ea
wxString assignment operator from wx[W]CharBuffer.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 07:19:59 +00:00
Ove Kaaven
4300d6cbc3
Small glitch.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:41:40 +00:00
Ove Kaaven
2bb67b808b
Unicode support for wxString (wxchar.cpp won't compile without it, so I
...
figured I couldn't hold it back anyway).
Added many macros. Changed most char to wxChar, and literals wrapped in _T().
Added conversion classes. Added new constructors to wxString, and mb_str(),
wc_str(), and fn_str() (the last is mb_str() on Unix and c_str() on Windows,
since Windows takes file names in Unicode (I think), while Unix doesn't).
Rewrote wxString::Printf().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 21:14:46 +00:00
Vadim Zeitlin
b12696919b
allow access to terminating NUL character with operator[]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 17:22:19 +00:00
Vadim Zeitlin
227b5cd72f
AIX patches from Hans-Joachim Baader <hans-joachim.baader@cjt.de>
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 15:05:57 +00:00
Vadim Zeitlin
57493f9f85
more things are done by configure: checks for bool, whether overloading based
...
on size_t/int works or not (for wxString), the type of 3rd argument to
getsockaddr, absence of libXpm is not fatal (not tested), whether strings.h
exists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 19:12:49 +00:00
Vadim Zeitlin
1bfcb0b6c3
some fixes for AIX compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 15:23:00 +00:00
Stefan Csomor
8be97d65a6
CW Win32 and Mac adaptions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 16:56:43 +00:00
Vadim Zeitlin
30b21f9a04
wxArrayString::Sort() implemented
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 16:52:19 +00:00
Julian Smart
dbda9e86f0
Added more makefiles; fixed some samples for Cygwin
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 16:00:23 +00:00
Vadim Zeitlin
566b84d2ad
some compilation "enhancements"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 17:39:04 +00:00
Vadim Zeitlin
c606a9a401
conversions from int/long to wxString won't compile any more
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 16:06:01 +00:00
Vadim Zeitlin
3f4a0c5be3
_MSC_VER => __VISUALC__ change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 16:48:12 +00:00
Julian Smart
8870c26ecb
Added a few files; fixed some warnings and wxMotif compile problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-31 18:47:10 +00:00
Julian Smart
03ab016d66
Some corrections for BC++ compilation; Latex doc corrections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-31 11:42:58 +00:00
Vadim Zeitlin
dcfde59229
bool wxString::operator!() const added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-28 13:44:26 +00:00
Vadim Zeitlin
c84c52de6f
Added Upper() and Lower() - return the copy of the string converted to upper
...
or lower case (unlike MakeXXX() counterparts which change the string itself)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-26 16:08:09 +00:00
Julian Smart
a3ef5bf504
Various changes for Salford C++, and commited fileconf.h/fileconf.cpp changes
...
to take out nested classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-16 00:13:58 +00:00
Vadim Zeitlin
3c67202dee
1. NOT_FOUND -> wxNOT_FOUND
...
2. wxString::Left(), Right(), Before(), After() clean up
3. wxLocale updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-14 14:33:56 +00:00
Julian Smart
2432b92dd7
Doc & Symantec C++ fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-07 08:43:47 +00:00
Vadim Zeitlin
07c5641a93
wxString(const wxString& str, size_t position, size_t len) ctor now doesn't
...
have default value for the third param to avoid conflicts with
wxString(const wxString& str, size_t len) ctor. Sorry if this breaks code
which relied on it...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-01 22:49:27 +00:00
Stefan Csomor
17dff81c71
mac support as stubs added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-01 16:22:21 +00:00
Julian Smart
1fc5dd6f8e
Updated the Remstar ODBC files, got the db sample compiling; added Freq and SubString
...
to wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-30 17:40:53 +00:00
Julian Smart
88150e6073
Fixes to wxMotif scrolling and colours (wxTreeCtrl/wxListCtrl now seem to work
...
well, ta-ra!); fixes to thread.cpp since constants were changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-28 21:32:10 +00:00
Julian Smart
6244848856
Changes for 16-bit BC++ (not there yet), GnuWin32; typetest sample
...
fixed; some documentation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-28 12:35:49 +00:00
Julian Smart
7be1f0d91a
Partial Watcom C++ 10.6 support added (doesn't link for some reason)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-18 23:18:59 +00:00
Julian Smart
34b5942848
Bother, had to revert it since it caused more ambiguities.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-17 18:19:51 +00:00
Julian Smart
c52486391b
Removed sometimes-ambiguous wxString operator
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-17 18:12:31 +00:00
Karsten Ballüder
e0e680d2e3
Another try to detect alpha systems and fix string.h for it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-01 15:51:49 +00:00
Karsten Ballüder
1805077dc2
handle sizeof(int) correctly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-11-27 14:19:39 +00:00