[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-regexp-dev
Subject:    RE: jakarta-regexp documentation bug
From:       "Iain Lowe" <ilowe () videotron ! ca>
Date:       2001-03-09 15:36:59
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic