Fixed CS_UNICODE_ESCAPE = true;
This commit is contained in:
@@ -942,31 +942,31 @@ public class NfaState
|
||||
Integer ind;
|
||||
String tmp;
|
||||
|
||||
tmp = "{\n 0x" + Long.toHexString(common[0]) + "L, " +
|
||||
"0x" + Long.toHexString(common[1]) + "L, " +
|
||||
"0x" + Long.toHexString(common[2]) + "L, " +
|
||||
"0x" + Long.toHexString(common[3]) + "L\n};";
|
||||
tmp = "{\n unchecked((long)0x" + Long.toHexString(common[0]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(common[1]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(common[2]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(common[3]) + "L)\n};";
|
||||
if ((ind = (Integer)lohiByteTab.get(tmp)) == null)
|
||||
{
|
||||
allBitVectors.addElement(tmp);
|
||||
|
||||
if (!AllBitsSet(tmp))
|
||||
ostr.println("static ulong[] jjbitVec" + lohiByteCnt + " = " + tmp);
|
||||
ostr.println("static long[] jjbitVec" + lohiByteCnt + " = " + tmp);
|
||||
lohiByteTab.put(tmp, ind = new Integer(lohiByteCnt++));
|
||||
}
|
||||
|
||||
tmpIndices[cnt++] = ind.intValue();
|
||||
|
||||
tmp = "{\n 0x" + Long.toHexString(loBytes[i][0]) + "L, " +
|
||||
"0x" + Long.toHexString(loBytes[i][1]) + "L, " +
|
||||
"0x" + Long.toHexString(loBytes[i][2]) + "L, " +
|
||||
"0x" + Long.toHexString(loBytes[i][3]) + "L\n};";
|
||||
tmp = "{\n unchecked((long)0x" + Long.toHexString(loBytes[i][0]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(loBytes[i][1]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(loBytes[i][2]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(loBytes[i][3]) + "L)\n};";
|
||||
if ((ind = (Integer)lohiByteTab.get(tmp)) == null)
|
||||
{
|
||||
allBitVectors.addElement(tmp);
|
||||
|
||||
if (!AllBitsSet(tmp))
|
||||
ostr.println("static ulong[] jjbitVec" + lohiByteCnt + " = " + tmp);
|
||||
ostr.println("static long[] jjbitVec" + lohiByteCnt + " = " + tmp);
|
||||
lohiByteTab.put(tmp, ind = new Integer(lohiByteCnt++));
|
||||
}
|
||||
|
||||
@@ -999,17 +999,17 @@ public class NfaState
|
||||
String tmp;
|
||||
Integer ind;
|
||||
|
||||
tmp = "{\n 0x" + Long.toHexString(loBytes[i][0]) + "L, " +
|
||||
"0x" + Long.toHexString(loBytes[i][1]) + "L, " +
|
||||
"0x" + Long.toHexString(loBytes[i][2]) + "L, " +
|
||||
"0x" + Long.toHexString(loBytes[i][3]) + "L\n};";
|
||||
tmp = "{\n unchecked((long)0x" + Long.toHexString(loBytes[i][0]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(loBytes[i][1]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(loBytes[i][2]) + "L), " +
|
||||
"unchecked((long)0x" + Long.toHexString(loBytes[i][3]) + "L)\n};";
|
||||
|
||||
if ((ind = (Integer)lohiByteTab.get(tmp)) == null)
|
||||
{
|
||||
allBitVectors.addElement(tmp);
|
||||
|
||||
if (!AllBitsSet(tmp))
|
||||
ostr.println("static ulong[] jjbitVec" + lohiByteCnt + " = " + tmp);
|
||||
ostr.println("static long[] jjbitVec" + lohiByteCnt + " = " + tmp);
|
||||
lohiByteTab.put(tmp, ind = new Integer(lohiByteCnt++));
|
||||
}
|
||||
|
||||
@@ -1608,11 +1608,11 @@ public class NfaState
|
||||
{
|
||||
ostr.println(" int hiByte = (int)(curChar >> 8);");
|
||||
ostr.println(" int i1 = hiByte >> 6;");
|
||||
ostr.println(" ulong l1 = 1UL << (hiByte & 0x3F);");
|
||||
ostr.println(" long l1 = (long)(1UL << (hiByte & 0x3F));");
|
||||
}
|
||||
|
||||
ostr.println(" int i2 = (curChar & 0xff) >> 6;");
|
||||
ostr.println(" ulong l2 = 1UL << (curChar & 0x3F);");
|
||||
ostr.println(" long l2 = (long)(1UL << (curChar & 0x3F));");
|
||||
}
|
||||
|
||||
ostr.println(" MatchLoop: do");
|
||||
|
||||
Reference in New Issue
Block a user