Commit Graph

42 Commits

Author SHA1 Message Date
Michael Wetherell
9630cac5fc Take out wxASSERTs since they give a warning with gcc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-27 18:12:37 +00:00
Vadim Zeitlin
2cdf244521 fix warnings about casting regmatch_t struct fields to size_t
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-25 21:49:00 +00:00
Michael Wetherell
7553e636a2 Add 'wx_' prefix to builtin regfree and regerror
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-23 13:56:08 +00:00
Michael Wetherell
ab0f0eddc4 Use re_search directly instead of regexec when using the GNU regex lib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-20 17:25:33 +00:00
Michael Wetherell
c9eee7f035 Add a length parameter for wxRegEx::Matches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-15 15:51:10 +00:00
Michael Wetherell
db9db9cd18 Change the name of a symbol to make it more descriptive
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-11 19:33:47 +00:00
Michael Wetherell
f302b6a445 Make wxRegEx::Replace run in linear time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-11 17:22:13 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
c781c31638 added wx_truncate_cast and use it (sometimes instead of wx_static_cast) to explicitely show int truncation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-17 21:03:45 +00:00
Julian Smart
3103e8a97e Typo correction patch [ 1208110 ] Lots of typo corrections
Olly Betts


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Vadim Zeitlin
2af7511ea7 a better fix for using builtin regex under BSD (also fixes compilation for Mac OS X) (patch 1089445)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-04 09:37:55 +00:00
Włodzimierz Skiba
701a0b4766 Source cleaning: whitespaces, tabs, -1/wxNOT_FOUND, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 18:15:59 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Václav Slavík
86b79b93fb added wxRegEx::GetMatchCount (patch 938995)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-21 20:14:14 +00:00
Václav Slavík
e3f9e20cb1 applied patch 890642: wxRE_ADVANCED flag and docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-19 17:28:56 +00:00
Julian Smart
8cc4850c2d Patch from "Viktor Voroshylo" <viktor@voroshylo.com>
src/.cvsignore : changes to ignore temorary project files
src/regex/.cvsignore : changes to ignore temorary project files for CE compiler
src/regex/regguts.h : assert will be ignored under WinCE
src/msw/button.cpp : BS_FLAT is not available under winCE
src/msw/clipbrd.cpp : changed CLIPFORMAT to wxDataFormat::NativeFormat so it will compile when ole is not included (under winCE)
src/msw/menu.cpp : GetMenuItemCount is not available under winCE. Using wxMenu::GetMenuCount in this case
src/common/regex.cpp : regex will be included under wince
include/wx/msw/wince/setup.h : wxUSE_THREADS & wxUSE_REGEX is enabled by default (as in standard windows configuration)
src/msw/wince/wxWindowsCE.vcp: fixed problem with all configurations (except emu once) do not have procompiled headers setup correctly. Changes for compiling with regex.
src/msw/wince/wxWindowsCE.vcw : added regex in workspace file


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-27 17:47:37 +00:00
Ryan Norton
122c9be085 removed wxUSE_BUILTIN_REGEX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-30 23:41:47 +00:00
Ryan Norton
c5feba0ea3 Cleaned up regex.cpp
fixed strlen problem in regex
many other things related to cleanup of regex.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-30 22:21:00 +00:00
Dimitri Schoolwerth
04fdd8736a Fixed Mac CodeWarrior compilation (there's no <sys/types.h>).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 00:24:35 +00:00
Ryan Norton
ebacd1fe81 Fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 00:14:44 +00:00
Ryan Norton
cffadd8447 (should) fix unix compilation...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 23:58:55 +00:00
Ryan Norton
f97c9db7ae Put the locale funcs here and had them call the correct CRT function via wx versions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 23:06:05 +00:00
Gilles Depeyrot
79f2eb8055 corrected wxUSE_UNICODE conditional compilation tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 18:53:36 +00:00
Ryan Norton
1ce5dd35eb 1.
Fixed Exception handling in MSVC project (\\GX)

2.
No longer wxUSE_NEW_REGEX, just wxUSE_UNICODE

3.
Various changes concerning #2

NOTE:  I testing this in unicode and it works!!


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 16:57:30 +00:00
Ryan Norton
11b63c6895 Quick change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 23:18:06 +00:00
Ryan Norton
49bf0b0164 Made compatible with new regex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 23:13:56 +00:00
Václav Slavík
14f355c2b5 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Mattia Barbon
de564874d6 Use wxStringBuffer[Length] instead of explicit calls to
wxString::get/UngetWriteBuffer.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 09:41:26 +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
71b5725f30 fixed bug in group counting Compile()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 17:02:29 +00:00
Vadim Zeitlin
a9103a81be fix m_Matches overflow if Compile() is called more than once (bug 742236)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 20:28:01 +00:00
Chris Elliott
4ded51f2fa update to make digitalmars compile/link image sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-22 21:12:30 +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
Václav Slavík
a20275148b compilation fix for Watcom
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-07 22:51:08 +00:00
Vadim Zeitlin
9aee09a34b Unicode compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-03 23:36:47 +00:00
Vadim Zeitlin
59078e629d applied patch from Xavier Nodet implementing better handling of subexpressions array in wxRegEx
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-06 17:21:00 +00:00
Vadim Zeitlin
0f2ecc913b FreeBSD compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-19 20:54:49 +00:00
Vadim Zeitlin
53997bc265 removed assert which could be provoked by correct code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-16 15:17:09 +00:00
Vadim Zeitlin
765624f735 rewrote wxRegEx::Replace() to do something useful
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-14 16:13:32 +00:00
Vadim Zeitlin
00e6c2bd41 added wxRegEx::GetMatch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-13 17:10:00 +00:00
Vadim Zeitlin
e7208277c1 wxRegEx class added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-13 16:17:43 +00:00