Commit Graph

109 Commits

Author SHA1 Message Date
Andy Heninger
1ba1ec3b83 ICU-11049 regular expressions, use same logic in UText and (UChar *) code paths when checking limit of potential match start positions.
X-SVN-Rev: 36161
2014-08-14 17:44:05 +00:00
Andy Heninger
e03585d7cf ICU-11049 fix regex find() memory overrun.
X-SVN-Rev: 36124
2014-08-06 21:49:08 +00:00
Andy Heninger
10dd7ed47b ICU-10463 Regular Expressions, rework debug conditionals to fix build failures on clang, and to somewhat simplify.
X-SVN-Rev: 34565
2013-10-14 22:11:21 +00:00
Andy Heninger
045919648e ICU-10459 Fix segfault in uregex_group() when match is in invalid state.
X-SVN-Rev: 34559
2013-10-11 20:59:39 +00:00
Andy Heninger
20016a58db ICU-9719 Regular Expressions, add loop breaking to unbounded {min, max} loops.
X-SVN-Rev: 33848
2013-06-26 00:27:11 +00:00
Andy Heninger
b129b40280 ICU-10024 fixes for Regexp, look-behind pattern fails to compile bug.
X-SVN-Rev: 33835
2013-06-18 20:38:08 +00:00
Michael Ow
0ca13b73b0 ICU-9292 Merge BEAM warning fixes from branch into trunk
X-SVN-Rev: 31792
2012-05-03 05:50:26 +00:00
Andy Heninger
b8315ecf6a ICU-8826 Regex case insensitive match fixes; also fixes #6074, hitEnd() sometimes fails.
X-SVN-Rev: 31233
2012-01-20 00:50:02 +00:00
Andy Heninger
81618f4a97 ICU-8824 Apply patch to remove read of unitialized memory.
X-SVN-Rev: 30688
2011-09-19 20:48:29 +00:00
Markus Scherer
e31ce99b84 ICU-8575 option for not including utf headers by default; replace uses of deprecated utf_old.h macros
X-SVN-Rev: 30430
2011-07-27 05:53:56 +00:00
Steven R. Loomis
b209c07620 ICU-8687 warnings fix (clang)
X-SVN-Rev: 30285
2011-07-06 20:05:38 +00:00
Andy Heninger
8148726df2 ICU-8404 Regular Expressions split(), fix incorrect handling of trailing empty field
X-SVN-Rev: 29801
2011-04-15 00:48:39 +00:00
Andy Heninger
4a932a4dfc ICU-7795 Regular Expression refreshInputText added.
X-SVN-Rev: 29363
2011-01-27 01:12:12 +00:00
Michael Grady
cfe1b1d92f ICU-8104 Move REGEXFINDPROGRESS_INTERRUPT macro out of regex.h into implementation
X-SVN-Rev: 28961
2010-10-30 21:49:29 +00:00
Andy Heninger
69a7b1ea42 ICU-6545 Allow regex reset to the end of a string
X-SVN-Rev: 28801
2010-10-12 22:52:51 +00:00
Markus Scherer
b5e1330176 ICU-7264 merge Unicode 6.0 into trunk from branches/markus/uni60 -r 28339:28657
X-SVN-Rev: 28661
2010-09-21 00:12:49 +00:00
Michael Grady
751473d25a ICU-7813 64bit regex API, 7675: UText-based Regex to use native indexes, 7764: Improved UText-regex API error handling, 7855: UText regex group API returns shallow clone, 7851: Set region and start position, 7763: Inline regex progress callback function.
X-SVN-Rev: 28647
2010-09-18 03:07:17 +00:00
Andy Heninger
74e297291f ICU-7780 fix various compiler warnings
X-SVN-Rev: 28301
2010-07-12 18:03:29 +00:00
Andy Heninger
e8985e068a ICU-7740 Regex error handling cleanups
X-SVN-Rev: 28210
2010-06-16 17:54:04 +00:00
Michael Grady
8b6ce73317 ICU-7666 Regex find progress callback (from branch to trunk)
X-SVN-Rev: 28201
2010-06-15 20:19:10 +00:00
Michael Ow
7058d05758 ICU-7651 Fix incorrect size calculation of fSmallData in regex.
X-SVN-Rev: 27992
2010-04-28 02:32:00 +00:00
Peter Edberg
829d15c795 ICU-7538 Avoid negative array index when UTEXT_NEXT32 returns -1 (U_SENTINEL)
X-SVN-Rev: 27821
2010-03-11 19:54:36 +00:00
Peter Edberg
411a93712a ICU-4521 Merge from branch, fixes for 64bit alignment & type conversions
X-SVN-Rev: 27670
2010-02-25 06:33:29 +00:00
Michael Ow
0763686c6c ICU-7370 Log data errors to ensure that intltest and cintltst passes without data.
X-SVN-Rev: 27649
2010-02-24 16:17:03 +00:00
Peter Edberg
f308bffc8c ICU-4521 Disambiguate signatures for RegexPattern::matcher,RegexMatcher::group for 0 pointers; fix warnings
X-SVN-Rev: 27522
2010-02-09 20:17:52 +00:00
John Emmons
b932e68f4f ICU-4521 Fix ambiguous argument
X-SVN-Rev: 27510
2010-02-08 17:50:41 +00:00
Michael Grady
8216117f21 ICU-4521 UText-based regex implementation
X-SVN-Rev: 27482
2010-02-03 02:59:35 +00:00
David Bertoni
9ea0a3d95d ICU-6149 Fixed typos in comments.
X-SVN-Rev: 24285
2008-06-25 00:42:29 +00:00
George Rhoten
fe7e42eace ICU-6149 Use traditional ICU C callback declarations.
X-SVN-Rev: 23481
2008-02-25 21:21:47 +00:00
Andy Heninger
5e550c04ac ICU-6149 Merge regexp resource limit functions into the trunk
X-SVN-Rev: 23467
2008-02-20 03:08:44 +00:00
Yoshito Umaoka
b2d926052e ICU-5386 Fix a compilation problem in the previous revision - changed int to int32_t.
X-SVN-Rev: 23084
2007-12-14 03:53:20 +00:00
Andy Heninger
67e296e813 ICU-5386 Regular Expressions update, improved Java 1.5 compatibility. svn merge -r 22747:23061 from branches/andy/regex
X-SVN-Rev: 23063
2007-12-11 21:30:10 +00:00
Andy Heninger
2d8fa82c26 ICU-5617 Update set of characters that are ignored for the purposes of finding word boundaries, for simple (not UAX 29) \b boundaries.
X-SVN-Rev: 21973
2007-07-13 22:12:31 +00:00
George Rhoten
ac329166b4 ICU-5427 Reduce regex static memory consumption by 35%
X-SVN-Rev: 21805
2007-06-22 01:06:31 +00:00
George Rhoten
2f55b1b39f ICU-5410 Improve code coverage by removing unused/unuseable code.
X-SVN-Rev: 21693
2007-06-11 17:37:31 +00:00
George Rhoten
f9e6f15721 ICU-4733 Use int32_t instead of int.
X-SVN-Rev: 18462
2005-08-25 18:02:20 +00:00
Andy Heninger
dcf498d172 ICU-4703 beam compile warning fixes
X-SVN-Rev: 18385
2005-08-02 21:51:56 +00:00
Andy Heninger
1bea558cb2 ICU-4474 add \u000b as a newline in regex matching
X-SVN-Rev: 17933
2005-06-17 00:42:54 +00:00
Andy Heninger
1f42f071fc ICU-4057 incorrect regex appendReplacement after multiple find()s.
X-SVN-Rev: 16601
2004-10-22 22:51:02 +00:00
Andy Heninger
9f286086d1 ICU-3337 better detect incorrect usage of Regex APIs.
X-SVN-Rev: 16595
2004-10-22 16:32:12 +00:00
Andy Heninger
e04ddd2239 ICU-4086 regex match/lookingAt/find at end of string with zero length match not working.
X-SVN-Rev: 16328
2004-09-15 01:28:15 +00:00
Andy Heninger
2a22e946ca ICU-4030 regexp replacement strings indexing error when containing \uxxxx escapes
X-SVN-Rev: 16120
2004-08-06 00:46:28 +00:00
Andy Heninger
bfe75d588f ICU-4046 regexp::find(), CR not recognized as line separator in some cases.
X-SVN-Rev: 16118
2004-08-05 22:48:05 +00:00
Andy Heninger
6b4f353fe4 ICU-4045 regexp::find(), fix incorrect resut when called repeatedly at end of input string.
X-SVN-Rev: 16115
2004-08-05 19:00:37 +00:00
Andy Heninger
a13646fb43 ICU-4024 fix new line handling bugs in regexp
X-SVN-Rev: 16112
2004-08-05 00:24:36 +00:00
Andy Heninger
1b339e97db ICU-4024 fix new line handling bugs in regexp
X-SVN-Rev: 16104
2004-08-04 04:47:18 +00:00
Eric Mader
abefef5844 ICU-3770 Updated copyright notices for ICU 3.0
X-SVN-Rev: 15411
2004-05-19 20:42:44 +00:00
Andy Heninger
db9aaf89f0 ICU-3436 regex find() now moves start position forward after zero-length matches to avoid loops
X-SVN-Rev: 14245
2004-01-07 00:03:46 +00:00
Eric Mader
078c13a236 ICU-3476 fix memory allocation problems.
X-SVN-Rev: 14211
2003-12-23 18:10:11 +00:00
Andy Heninger
3d14de00e4 ICU-3445 UCONFIG_NO_BREAK_ITERATION changes to Regexp
X-SVN-Rev: 14055
2003-12-09 19:12:16 +00:00