/[classpath]/classpath/java/util/regex/Pattern.java
ViewVC logotype

Diff of /classpath/java/util/regex/Pattern.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.2 by gnu_andrew, Mon Feb 7 02:45:45 2005 UTC revision 1.8.2.3 by gnu_andrew, Fri May 27 00:01:45 2005 UTC
# Line 1  Line 1 
1  /* Pattern.java -- Compiled regular expression ready to be applied.  /* Pattern.java -- Compiled regular expression ready to be applied.
2     Copyright (C) 2002, 2004 Free Software Foundation, Inc.     Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 188  public final class Pattern implements Se Line 188  public final class Pattern implements Se
188      int count = 0;      int count = 0;
189      int start = 0;      int start = 0;
190      int end;      int end;
191      boolean matched;      boolean matched = matcher.find();
192    
193      while (matched = matcher.find() && (limit <= 0 || count < limit - 1))      while (matched && (limit <= 0 || count < limit - 1))
194        {        {
195          ++count;          ++count;
196          end = matcher.start();          end = matcher.start();
# Line 208  public final class Pattern implements Se Line 208  public final class Pattern implements Se
208              list.add(text);              list.add(text);
209            }            }
210          start = matcher.end();          start = matcher.end();
211            matched = matcher.find();
212        }        }
213    
214      // We matched nothing.      // We matched nothing.

Legend:
Removed from v.1.8.2.2  
changed lines
  Added in v.1.8.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26