jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iain Lowe" <il...@videotron.ca>
Subject RE: jakarta-regexp documentation bug
Date Fri, 09 Mar 2001 15:36:59 GMT
Here:

--- RE.java.old	Sat Feb 24 01:26:18 2001
+++ RE.java	Fri Mar 09 10:34:33 2001
@@ -109,15 +109,15 @@
  *
  * <br>
  *
- *     int startWholeExpr = getParenStart(0);   // startWholeExpr will be
index 1
- *     int endWholeExpr = getParenEnd(0);       // endWholeExpr will be
index 6
- *     int lenWholeExpr = getParenLength(0);    // lenWholeExpr will be 5
+ *     int startWholeExpr = r.getParenStart(0);   // startWholeExpr will be
index 1
+ *     int endWholeExpr = r.getParenEnd(0);       // endWholeExpr will be
index 6
+ *     int lenWholeExpr = r.getParenLength(0);    // lenWholeExpr will be 5
  *
  * <br>
  *
- *     int startInside = getParenStart(1);      // startInside will be
index 1
- *     int endInside = getParenEnd(1);          // endInside will be index
5
- *     int lenInside = getParenLength(1);       // lenInside will be 4
+ *     int startInside = r.getParenStart(1);      // startInside will be
index 1
+ *     int endInside = r.getParenEnd(1);          // endInside will be
index 5
+ *     int lenInside = r.getParenLength(1);       // lenInside will be 4
  *
  * </pre>
  *

-----Original Message-----
From: Jon Stevens [mailto:jon@latchkey.com]
Sent: Friday, March 09, 2001 3:53 AM
To: regexp-dev@jakarta.apache.org
Subject: FW: jakarta-regexp documentation bug


someone want to take care of this one? (i'm ultra busy).

thanks,

-jon

----------
From: Vladimir Tsichevski <wowa1@online.ru>
Date: Thu, 08 Mar 2001 18:09:10 +0300
To: jon@latchkey.com
Subject: jakarta-regexp documentation bug

Hi Jon,

The RE class documentation includes an example, the most part of which
can be neither compiled nor executed. You have to change all lines like:

    int startWholeExpr = getParenStart(0);   // startWholeExpr will be index
1

    int startWholeExpr = r.getParenStart(0);   // startWholeExpr will be
index 1

Regards,
Vladimir V. Tsichevski
expert

______________________________________________________
Jet Infosystems
Krasnoproletarskaya 6,  Tel. (+7 095) 972-1182
Moscow 103006, Russia  Fax  (+7 095) 972-0791
______________________________________________________
Any opinions or recommendations herein are those of the
author and not of his computer.


Mime
View raw message