| File |
Line |
| com/quiotix/html/parser/HtmlParserTokenManager.java |
1091
|
| com/quiotix/html/parser/HtmlParserTokenManager.java |
1647
|
private int jjMoveNfa_0(int startState, int curPos)
{
//int[] nextStates; // not used
int startsAt = 0;
jjnewStateCnt = 11;
int i = 1;
jjstateSet[0] = startState;
//int j; // not used
int kind = 0x7fffffff;
for (;;)
{
if (++jjround == 0x7fffffff)
ReInitRounds();
if (curChar < 64)
{
long l = 1L << curChar;
do
{
switch(jjstateSet[--i])
{
case 1:
if ((0xefffff7bffffdbffL & l) != 0L)
{
if (kind > 44)
kind = 44;
jjCheckNAdd(3);
}
else if ((0x8400000000L & l) != 0L)
{
if (kind > 44)
kind = 44;
}
else if ((0x2400L & l) != 0L)
{
if (kind > 42)
kind = 42;
}
if (curChar == 39)
jjCheckNAddTwoStates(8, 9);
else if (curChar == 34)
jjCheckNAddTwoStates(5, 6);
else if (curChar == 13)
jjstateSet[jjnewStateCnt++] = 0;
break;
case 0:
if (curChar == 10 && kind > 42)
kind = 42;
break;
case 2:
if ((0x2400L & l) != 0L && kind > 42)
kind = 42;
break;
case 3:
if ((0xefffff7bffffdbffL & l) == 0L)
break;
if (kind > 44)
kind = 44;
jjCheckNAdd(3);
break;
case 4:
if (curChar == 34)
jjCheckNAddTwoStates(5, 6);
break;
case 5:
if ((0xfffffffbffffdbffL & l) != 0L)
jjCheckNAddTwoStates(5, 6);
break;
case 6:
if (curChar == 34 && kind > 44)
kind = 44;
break;
case 7:
if (curChar == 39)
jjCheckNAddTwoStates(8, 9);
break;
case 8:
if ((0xffffff7fffffdbffL & l) != 0L)
jjCheckNAddTwoStates(8, 9);
break;
case 9:
if (curChar == 39 && kind > 44)
kind = 44;
break;
case 10:
if ((0x8400000000L & l) != 0L && kind > 44)
kind = 44;
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
do
{
switch(jjstateSet[--i])
{
case 1:
case 3:
if (kind > 44)
kind = 44;
jjCheckNAdd(3);
break;
case 5:
jjAddStates(7, 8);
break;
case 8:
jjAddStates(9, 10);
break;
default : break;
}
} while(i != startsAt);
}
else
{
int i2 = (curChar & 0xff) >> 6;
long l2 = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 1:
case 3:
if ((jjbitVec0[i2] & l2) == 0L)
break;
if (kind > 44)
kind = 44;
jjCheckNAdd(3);
break;
case 5:
if ((jjbitVec0[i2] & l2) != 0L)
jjAddStates(7, 8);
break;
case 8:
if ((jjbitVec0[i2] & l2) != 0L)
jjAddStates(9, 10);
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 11 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
private final int jjStopStringLiteralDfa_3(int pos, long active0)
|
| File |
Line |
| com/quiotix/html/parser/ParseException.java |
151
|
| com/quiotix/html/parser/TokenMgrError.java |
42
|
protected static final String addEscapes(String str) {
StringBuffer retval = new StringBuffer();
char ch;
for (int i = 0; i < str.length(); i++) {
switch (str.charAt(i))
{
case 0 :
continue;
case '\b':
retval.append("\\b");
continue;
case '\t':
retval.append("\\t");
continue;
case '\n':
retval.append("\\n");
continue;
case '\f':
retval.append("\\f");
continue;
case '\r':
retval.append("\\r");
continue;
case '\"':
retval.append("\\\"");
continue;
case '\'':
retval.append("\\\'");
continue;
case '\\':
retval.append("\\\\");
continue;
default:
if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
String s = "0000" + Integer.toString(ch, 16);
retval.append("\\u" + s.substring(s.length() - 4, s.length()));
} else {
retval.append(ch);
}
continue;
}
}
return retval.toString();
}
|