Andy Heninger
327087150f
ICU-20618 Regex nested lookaround expressions, clean up active match region handling.
2019-08-19 13:31:34 -07:00
Fredrik Roubert
5d6d29b76a
ICU-20601 Remove superfluous semicolons (-Wextra-semi-stmt).
...
These are the same changes for the C++ code as was done for the C code
by commit 17606e0345
.
2019-08-15 12:30:21 +02:00
Andy Heninger
d685cacd9b
ICU-20391 Fix regexp crash with nested look-behinds, from fuzz testing.
2019-04-17 22:17:47 -07:00
Andy Heninger
bdb1806580
ICU-20544 Regex, Fix assertion failure in positive look-behind
2019-04-12 15:27:40 -07:00
Andy Heninger
7053363323
ICU-20544 Regex, fix min/max match length computation with negative look-behind patterns.
2019-04-10 22:38:25 -07:00
Andy Heninger
e559b30309
ICU-20359 Fix stack overflow in Regex Pattern Compile.
2019-03-07 10:31:30 -08:00
Andy Heninger
1130b9c087
ICU-20385 Regex, fix pattern compile problem with look-behind patterns that cannot match.
2019-02-08 12:57:06 -08:00
Jeff Genovy
5c8960e59e
ICU-20074 Revise UPRV_UNREACHABLE macro to always call abort().
...
Moved the macro from platform.h to uassert.h.
Removed any "unreachable" code that previously occurred after the UPRV_UNREACHABLE macro is used.
Changes based on review from Andy.
Co-authored-by: Daniel Ju <daju@microsoft.com>
2019-01-24 18:50:04 -08:00
Daniel Ju
7453181fff
ICU-20074 Define UPRV_UNREACHABLE macro for unreachable code
...
Replaced occurrences of U_ASSERT(FALSE) with new UPRV_UNREACHABLE macro.
2019-01-14 14:16:26 -08:00
Andy Heninger
e9e50b5aa3
ICU-13844 Regex unicode properties, add IsXXX forms for Java compatib… ( #61 )
...
* ICU-13844 Regex unicode properties, add IsXXX forms for Java compatibility.
* ICU-13844 Regex Property Review fixes from Markus.
2018-09-27 14:27:38 -07:00
Jeff Genovy
05b4908921
ICU-12647 Use inline string literals instead of renaming the variables.
...
X-SVN-Rev: 40932
2018-02-16 02:04:18 +00:00
Jeff Genovy
4298f41e35
ICU-12647 Fix build break on Windows.
...
('IN' is already defined in a Windows header, so it conflicts with the variable IN.)
X-SVN-Rev: 40925
2018-02-15 22:37:22 +00:00
Andy Heninger
8e5c017e03
ICU-12930 Fix assertion failure in regex compile.
...
X-SVN-Rev: 39663
2017-02-10 23:30:24 +00:00
Andy Heninger
242e02c388
ICU-12764 icu4c utf-8 source files, update Copyright notices.
...
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Michael Ow
61607c2773
ICU-12564 Update copyright notice in trunk
...
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126
ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
...
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f
ICU-12564 Update copyright notice in ICU4C
...
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Andy Heninger
29e0435a01
ICU-12379 Add assertion check to internal function parameter value.
...
X-SVN-Rev: 38524
2016-03-16 22:55:08 +00:00
Markus Scherer
a9c247a3cb
ICU-12166 annotate intended switch case fallthroughs
...
X-SVN-Rev: 38447
2016-03-01 07:44:57 +00:00
Andy Heninger
92e4ca4448
ICU-12138 Fix RegexCompile::doParseActions uses uninitialized variable
...
X-SVN-Rev: 38395
2016-02-27 00:04:47 +00:00
Andy Heninger
ce09d8a4bc
ICU-11393 Regex, add pattern chars R v and h
...
X-SVN-Rev: 37057
2015-02-24 00:24:59 +00:00
Andy Heninger
ec3f77f878
ICU-5312 Regular Expressions Named Capture.
...
X-SVN-Rev: 37040
2015-02-18 23:56:19 +00:00
Andy Heninger
03fd84ff03
ICU-11104 MSVC compiler warnings, apply patch from Chromium.
...
X-SVN-Rev: 36995
2015-01-30 02:18:02 +00:00
Andy Heninger
63758dca88
ICU-11371 Improved checking of regular expression pattern size limits.
...
X-SVN-Rev: 36801
2014-12-02 21:58:18 +00:00
Andy Heninger
b3bd196383
ICU-11373 Regex, check for integer overflow in maxMatchLength computation.
...
X-SVN-Rev: 36794
2014-12-02 19:24:31 +00:00
Andy Heninger
2e6a8c568c
ICU-11374 Regular Expression, improve checking of integer overflow.
...
X-SVN-Rev: 36792
2014-12-02 17:05:27 +00:00
Andy Heninger
f5d14979c6
ICU-11369 Regex, fix incorrect optimization of patterns with a zero length quantifier {0}
...
X-SVN-Rev: 36727
2014-11-12 23:42:14 +00:00
Andy Heninger
9db433b745
ICU-11370 Regex, add missing range check of length of a look-behind expression.
...
X-SVN-Rev: 36724
2014-11-12 23:10:21 +00:00
Yoshito Umaoka
ff4fd29a21
ICU-11302 Proper error handling with utext_clone in regular expression implementation.
...
X-SVN-Rev: 36673
2014-10-13 17:46:34 +00:00
Andy Heninger
a45f7faf63
ICU-10835 Improve performance of case insensitive find operations.
...
X-SVN-Rev: 35683
2014-05-02 22:51:53 +00:00
Andy Heninger
dbcf79f57b
ICU-10799 ICU initialization code, review & cleanup.
...
X-SVN-Rev: 35649
2014-04-23 23:22:13 +00:00
Andy Heninger
1996008111
ICU-10624 Swat clang compile warnings. More fixes to come.
...
X-SVN-Rev: 34854
2014-01-10 02:24:54 +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
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
b916fcb50b
ICU-9283 fix for look-behind assertions w/ case insensitive matching.
...
X-SVN-Rev: 31782
2012-04-27 21:29:34 +00:00
Andy Heninger
c74df646b7
ICU-6947 implement UREGEX_LITERAL flag.
...
X-SVN-Rev: 31398
2012-02-15 01:30:55 +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
Yoshito Umaoka
e9503bdade
ICU-8909 Fixed various warnings reported by a source code analysis tool.
...
X-SVN-Rev: 30958
2011-11-14 19:32:51 +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
Andy Heninger
05d9fcda26
ICU-8666 Fix regular expression assertion failure on match
...
X-SVN-Rev: 30244
2011-06-28 05:35:42 +00:00
Markus Scherer
9774441e40
ICU-8491 remove uprv_isRuleWhiteSpace(c)
...
X-SVN-Rev: 29900
2011-04-26 06:39:29 +00:00
Andy Heninger
4efdb1090d
ICU-7555 regexp does not recognize [:word:]
...
X-SVN-Rev: 28854
2010-10-18 20:08:27 +00:00
Andy Heninger
f68de91610
ICU-8005 uninitialized field fLastChar (from valgrind)
...
X-SVN-Rev: 28758
2010-10-04 23:02:29 +00:00
Andy Heninger
74e297291f
ICU-7780 fix various compiler warnings
...
X-SVN-Rev: 28301
2010-07-12 18:03:29 +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
Peter Edberg
a6c3b1905e
ICU-4521 Fix dangling pointer if a UnicodeString passed to RegexPattern::compile
...
doesn't persist for the life of the RegexPattern; ensure RegexPattern == still works.
X-SVN-Rev: 27541
2010-02-11 06:57:20 +00:00
Michael Grady
8216117f21
ICU-4521 UText-based regex implementation
...
X-SVN-Rev: 27482
2010-02-03 02:59:35 +00:00
Andy Heninger
44bf429a55
ICU-7224 bug in regular expressions with negative lookahead
...
X-SVN-Rev: 26848
2009-11-06 01:27:56 +00:00