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 |
|
|
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); |