From bca2e3c131f8358ce74fcf12632d6814cf36ea53 Mon Sep 17 00:00:00 2001 From: Ziga Mahkovec Date: Sun, 12 Jun 2005 19:33:15 +0000 Subject: 2005-06-12 Ziga Mahkovec PR libgcj/20435: * gnu/regexp/RESyntax.java (RE_POSSESSIVE_OPS): New field. (static): Add possessive matching to JAVA_1_4 syntax. * gnu/regexp/RETokenRepeated.java (possessive): New field. (makePossessive, isPossessive): New methods. (match): Don't back off during possessive matching. * gnu/regexp/RE.java (initalize): Accept possessive quantifier. * java/util/regex/Pattern.java (constructor): Switch syntax from PERL5 to JAVA_1_4. --- java/util/regex/Pattern.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'java') diff --git a/java/util/regex/Pattern.java b/java/util/regex/Pattern.java index 7fde5c8db..f7462d2fe 100644 --- a/java/util/regex/Pattern.java +++ b/java/util/regex/Pattern.java @@ -84,8 +84,7 @@ public final class Pattern implements Serializable // if ((flags & UNICODE_CASE) != 0) gnuFlags = // if ((flags & CANON_EQ) != 0) gnuFlags = - // Eventually there will be such a thing as JDK 1_4 syntax - RESyntax syntax = RESyntax.RE_SYNTAX_PERL5; + RESyntax syntax = RESyntax.RE_SYNTAX_JAVA_1_4; if ((flags & UNIX_LINES) != 0) { // Use a syntax set with \n for linefeeds? -- cgit v1.2.1