Commit Graph

32 Commits

Author SHA1 Message Date
Paul Sandoz
a12ad15110 8069325: Pattern.splitAsStream does not return input if it is empty and there is no match
Reviewed-by: sherman
2015-02-13 11:13:30 +01:00
Ivan Gerasimov
e03728427a 8035975: Pattern.compile(String, int) fails to throw IllegalArgumentException
Reviewed-by: sherman
2014-07-16 13:02:24 +04:00
Jeremy Manson
55d8dc5d85 8039124: j.u.regex.Matcher.appendReplace/Tail() should support StringBuilder variant
To add the StringBuilder variant

Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: alanb, sherman
2014-04-09 09:36:19 -07:00
Lana Steuck
657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
Xueming Shen
e2a87a0e2c 8035076: Pattern$BnMS never used due to bug in Pattern$BnM.optimize
Updated SliceS to subclass Slice node

Reviewed-by: alanb, martin
2014-02-20 09:52:50 -08:00
Lana Steuck
1a633e63a9 Merge 2013-11-15 07:14:23 -08:00
Xueming Shen
dc1dba10e7 8028321: Fix for String.split() empty input sequence/JDK-6559590 triggers regression
To undo the change for 6559590

Reviewed-by: darcy
2013-11-13 22:22:28 -08:00
Xueming Shen
4208726b35 8027645: Pattern.split() with positive lookahead
6559590: Pattern.compile(".*").split("") returns incorrect result

Updated spec/impl for these two corner cases

Reviewed-by: alanb, psandoz
2013-11-13 11:26:01 -08:00
Sergey Bylokhov
9ab430a0d2 8027696: Incorrect copyright header in the tests
Reviewed-by: alanb, malenkov, mullan
2013-11-12 20:24:25 +04:00
Paul Sandoz
57f84d8637 8024341: j.u.regex.Pattern.splitAsStream() doesn't correspond to split() method if using an example from the spec
Reviewed-by: alanb
2013-09-20 17:11:32 -07:00
Xueming Shen
d912aa501e 8023647: "abc1c".matches("(\\w)+1\\1")) returns false
To correct the wrong GroupCurly group index backoff code

Reviewed-by: alanb
2013-08-27 12:54:44 -07:00
Ben Evans
c9443a8346 8016846: Pattern.splitAsStream tests required
Reviewed-by: alanb, psandoz
2013-08-20 14:23:32 -07:00
Paul Sandoz
b047746827 8012646: Pattern.splitAsStream
Co-authored-by: Ben Evans <benjamin.john.evans@gmail.com>
Reviewed-by: forax, plevart, alanb
2013-05-01 18:40:31 +02:00
Xueming Shen
722199f9b2 8013252: Regex Matcher .start and .end should be accessible by group name
8013254: Constructor \w need update to add the support of \p{Join_Control}

Added the requested methods and updated the \w constructor

Reviewed-by: mchung, alanb
2013-05-06 21:24:37 -07:00
Xueming Shen
115e610026 8007395: StringIndexOutofBoundsException in Match.find() when input String contains surrogate UTF-16 characters
Updated GroupCurly.match0() to backtrack correctly

Reviewed-by: mchung
2013-04-26 13:59:10 -07:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Xueming Shen
ff93896a39 7189363: Regex Pattern compilation buggy for special sequences
Fixed the incorrect implementation in expr(...)

Reviewed-by: psandoz, alanb
2012-08-09 10:15:26 -07:00
Xueming Shen
c8da8f2595 7014640: To add a metachar \R for line ending and character classes for vertical/horizontal ws \v \V \h \H
Added propsoed constructs

Reviewed-by: alanb
2012-05-08 10:57:13 -07:00
Xueming Shen
1f4653910f 7067045: replaceAll("\u20ac", "$"); causses java.lang.StringIndexOutOfBoundsExceptio
Updated to throw IAE instead.

Reviewed-by: lancea
2012-04-12 15:01:41 -07:00
Stephen Flores
a8ad56bd5c 6990617: Regular expression doesn't match if unicode character next to a digit
Updated RemoveQEQuotation() to deal with this case correctly

Reviewed-by: sherman
2011-12-19 14:14:14 -08:00
Xueming Shen
df7a03a4c3 7039066: j.u.rgex does not match TR18 RL1.4 Simple Word Boundaries and RL1.2 Properties
Updated the regex Unicode property support

Reviewed-by: alanb
2011-04-28 20:48:36 -07:00
Kelly O'Hair
d2b1e20c7d 7033660: Update copyright year to 2011 on any files changed in 2011
Reviewed-by: dholmes
2011-04-06 22:06:11 -07:00
Xueming Shen
6435c3ecac 7014645: Support perl style Unicode hex notation \x{...}
Added the construct \x{...} for Unicode hex notation support

Reviewed-by: alanb, okutsu
2011-02-03 13:49:25 -08:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Lana Steuck
fd45b4188c Merge 2010-05-28 12:10:14 -07:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Xueming Shen
bb2be852aa 6945564: Unicode script support in Character class
6948903: Make Unicode scripts available for use in regular expressions

Added Unicode script suport

Reviewed-by: martin
2010-05-18 15:36:47 -07:00
Xueming Shen
d0a7eafe8d 6931676: TEST_BUG: wrong value for bugid in comments
Update to the correct bugid

Reviewed-by: martin
2010-04-15 17:00:55 -07:00
Xueming Shen
9ff3b18578 6919132: Regex \P{Lu} selects half of a surrogate pari
To use StartS for complement category/block class

Reviewed-by: martin, okutsu
2010-02-05 00:10:42 -08:00
Xueming Shen
e5745ffc8c 6878475: Better syntax for the named capture group in regex
Updated the syntax of the newly added named capture group

Reviewed-by: martin, alanb
2009-10-21 11:40:40 -07:00
Xueming Shen
df65a88edb 6817475: named-capturing group name started with digit causes PSE exception
Need accept the digit as the first char of the group name

Reviewed-by: alanb
2009-03-20 16:22:59 -07:00
Xueming Shen
952857e682 6350801: Add support for named (instead of numbered) capture groups in regular expression
6676425: Opensource unit/regression tests for java.util.regex

Added "named capturing group" into regex. Moved most of reg/unit tests to openjdk.

Reviewed-by: alanb, okutsu
2009-02-23 21:06:15 -08:00