United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4757029 Add API to limit searches within a Matcher's character sequence
JDK-4757029 : Add API to limit searches within a Matcher's character sequence

Details
Type:
Enhancement
Submit Date:
2002-10-02
Status:
Resolved
Updated Date:
2003-06-27
Project Name:
JDK
Resolved Date:
2003-06-27
Component:
core-libs
OS:
windows_2000
Sub-Component:
java.util.regex
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0,1.4.2
Fixed Versions:
5.0 (tiger)

Related Reports
Duplicate:

Sub Tasks

Description

Name: rmT116609			Date: 10/02/2002


DESCRIPTION OF THE PROBLEM :
A method in java.util.regexp.Matcher should be added :
Matcher.find(int startAt,int endAt). This method actually
exists but it's private.It could be handful to have this
method if we want to restrict the range of the query.

(Review ID: 158408) 
======================================================================

                                    

Comments
EVALUATION

A possibility for Tiger.
###@###.### 2002-10-02

The regions API has been approved and added in Tiger.
###@###.### 2003-06-05
                                     
2002-10-02
WORK AROUND

Get a subsequence and search on that. The drawbacks of this workaround is that you might have to copy the data to make the subsequence, and then the indexes have to be shifted back to the original sequence indexes. So this workaround could potentially be inconvenient, error-prone, and hurt performance.

Another alternative is to do the search and reject a match if it occurs beyond the index you want. The drawback of this workaround is performance related; the search may go a long ways beyond where you want and it might take a long time doing it in a large sequence. In certain rare cases the regex may even need more resources than are available if it is allowed to search through the whole sequence when it might complete on a smaller one.
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b10


                                     
2004-06-14



Hardware and Software, Engineered to Work Together