This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r110937 - in /branches/gcc-4_1-branch/libjava/c...
- From: tromey at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 13 Feb 2006 22:58:37 -0000
- Subject: r110937 - in /branches/gcc-4_1-branch/libjava/c...
Author: tromey
Date: Mon Feb 13 22:58:37 2006
New Revision: 110937
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110937
Log:
2006-02-13 Ito Kazumitsu <kaz@maczuka.gcd.org>
Fixes bug #26166
* gnu/regexp/RE.java(initialize): Parsing of character class expression
was moved to a new method parseCharClass.
(parseCharClass): New method originally in initialize. Added parsing
of nested character classes.
(ParseCharClassResult): New inner class used as a return value of
parseCharClass.
(getCharExpression),(getNamedProperty): Made static.
* gnu/regexp/RESyntax.java(RE_NESTED_CHARCLASS): New syntax flag.
* gnu/regexp/RETokenOneOf.java(addition): New Vector for storing
nested character classes.
(RETokenOneOf): New constructor accepting the Vector addition.
(getMinimumLength), (getMaximumLength): Returns 1 if the token
stands for only one character.
(match): Added the processing of the Vector addition.
(matchN), (matchP): Do not check next token if addition is used.
Modified:
branches/gcc-4_1-branch/libjava/classpath/ChangeLog.gcj
branches/gcc-4_1-branch/libjava/classpath/gnu/regexp/RE.java
branches/gcc-4_1-branch/libjava/classpath/gnu/regexp/RESyntax.java
branches/gcc-4_1-branch/libjava/classpath/gnu/regexp/RETokenOneOf.java