harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spark Shen <smallsmallor...@gmail.com>
Subject [classlib][regex] Is this a issue of java.util.regex.Matcher.region(int, int);
Date Thu, 27 Jul 2006 03:55:47 GMT
Hi All:
It seems that Matcher.region(int, int) will not have any effects when 
called. This can be demonstrated by the following test case:
public void test_RegionII() {
        CharBuffer buffer = CharBuffer.wrap(new char[] { 'a', 'a', 'b', 'b',
                '.', 'c' });

        Matcher matcher = Pattern.compile("c").matcher(buffer); 
        matcher.region(0, 2);
This test case pass on RI, but fail on Harmony. Can I infer that, 
harmony ignores region settting when trying to find the specified pattern?
Correct me if I am wrong.

Best regards

Spark Shen
China Software Development Lab, IBM

Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

View raw message