dfs 2004/06/14 19:45:28
Modified: src/java/org/apache/oro/text/regex Perl5Matcher.java
Log:
Adjusted access of __lastMatchResult fields to use the new protected
field names.
Revision Changes Path
1.29 +9 -9 jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Matcher.java
Index: Perl5Matcher.java
===================================================================
RCS file:
/home/cvs/jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Matcher.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- Perl5Matcher.java 13 Feb 2004 22:02:00 -0000 1.28
+++ Perl5Matcher.java 15 Jun 2004 02:45:28 -0000 1.29
@@ -217,33 +217,33 @@
if(__endMatchOffsets[0] > __originalInput.length)
throw new ArrayIndexOutOfBoundsException();
- __lastMatchResult._matchBeginOffset = __beginMatchOffsets[0];
+ __lastMatchResult._matchBeginOffset_ = __beginMatchOffsets[0];
while(__numParentheses >= 0) {
offs = __beginMatchOffsets[__numParentheses];
if(offs >= 0)
- __lastMatchResult._beginGroupOffset[__numParentheses] =
- offs - __lastMatchResult._matchBeginOffset;
+ __lastMatchResult._beginGroupOffset_[__numParentheses] =
+ offs - __lastMatchResult._matchBeginOffset_;
else
- __lastMatchResult._beginGroupOffset[__numParentheses] =
+ __lastMatchResult._beginGroupOffset_[__numParentheses] =
OpCode._NULL_OFFSET;
offs = __endMatchOffsets[__numParentheses];
if(offs >= 0) {
- __lastMatchResult._endGroupOffset[__numParentheses] =
- offs - __lastMatchResult._matchBeginOffset;
+ __lastMatchResult._endGroupOffset_[__numParentheses] =
+ offs - __lastMatchResult._matchBeginOffset_;
if(offs > maxEndOffs && offs <= __originalInput.length)
maxEndOffs = offs;
} else
- __lastMatchResult._endGroupOffset[__numParentheses] =
+ __lastMatchResult._endGroupOffset_[__numParentheses] =
OpCode._NULL_OFFSET;
--__numParentheses;
}
- __lastMatchResult._match =
+ __lastMatchResult._match_ =
new String(__originalInput, __beginMatchOffsets[0],
maxEndOffs - __beginMatchOffsets[0]);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]