/[classpath]/classpath/gnu/regexp/RE.java
ViewVC logotype

Diff of /classpath/gnu/regexp/RE.java

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

revision 1.1.2.3 by gnu_andrew, Fri May 20 18:20:54 2005 UTC revision 1.1.2.4 by gnu_andrew, Fri May 27 00:01:44 2005 UTC
# Line 1  Line 1 
1  /* gnu/regexp/RE.java  /* gnu/regexp/RE.java
2     Copyright (C) 1998-2001, 2004 Free Software Foundation, Inc.     Copyright (C) 1998-2001, 2004, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 819  public class RE extends REToken { Line 819  public class RE extends REToken {
819    
820    private static int getCharUnit(char[] input, int index, CharUnit unit, boolean quot) throws REException {    private static int getCharUnit(char[] input, int index, CharUnit unit, boolean quot) throws REException {
821      unit.ch = input[index++];      unit.ch = input[index++];
822      if (unit.bk = (unit.ch == '\\' && (!quot || index >= input.length || input[index] == 'E')))      unit.bk = (unit.ch == '\\'
823                   && (!quot || index >= input.length || input[index] == 'E'));
824        if (unit.bk)
825        if (index < input.length)        if (index < input.length)
826          unit.ch = input[index++];          unit.ch = input[index++];
827        else throw new REException(getLocalizedMessage("ends.with.backslash"),REException.REG_ESCAPE,index);        else throw new REException(getLocalizedMessage("ends.with.backslash"),REException.REG_ESCAPE,index);

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

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