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

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

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

revision 1.7 by jfrijters, Mon Nov 15 14:13:26 2004 UTC revision 1.8 by mark, Sun Feb 6 17:12:45 2005 UTC
# Line 212  public final class Matcher Line 212  public final class Matcher
212      if (match != null)      if (match != null)
213        {        {
214          if (match.getStartIndex() == 0)          if (match.getStartIndex() == 0)
215            return true;            {
216                position = match.getEndIndex();
217                return true;
218              }
219          match = null;          match = null;
220        }        }
221      return false;      return false;
# Line 230  public final class Matcher Line 233  public final class Matcher
233     */     */
234    public boolean matches ()    public boolean matches ()
235    {    {
236      return find(0);      if (lookingAt())
237          {
238            if (position == input.length())
239              return true;
240            match = null;
241          }
242        return false;
243    }    }
244        
245    /**    /**

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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