line |
true |
false |
branch |
62
|
12 |
4 |
for (i = 0; i < NUM_OF_CHARSET_PROBERS; i++)
|
68
|
12 |
4 |
for (PRInt32 i = 0; i < NUM_OF_CHARSET_PROBERS; i++)
|
69
|
12 |
0 |
if (mCharSetProbers[i])
|
70
|
12 |
0 |
delete mCharSetProbers[i];
|
71
|
0 |
4 |
if (mEscCharSetProber)
|
72
|
0 |
0 |
delete mEscCharSetProber;
|
88
|
0 |
0 |
if (mEscCharSetProber)
|
92
|
0 |
0 |
for (i = 0; i < NUM_OF_CHARSET_PROBERS; i++)
|
93
|
0 |
0 |
if (mCharSetProbers[i])
|
103
|
4 |
0 |
if(mDone)
|
106
|
4 |
0 |
if (aLen > 0)
|
110
|
4 |
0 |
if (mStart)
|
113
|
4 |
0 |
if (aLen > 3)
|
117
|
0 |
0 |
if (('\xBB' == aBuf[1]) && ('\xBF' == aBuf[2]))
|
|
0 |
0 |
if (('\xBB' == aBuf[1]) && ('\xBF' == aBuf[2]))
|
122
|
0 |
0 |
if (('\xFF' == aBuf[1]) && ('\x00' == aBuf[2]) && ('\x00' == aBuf[3]))
|
|
0 |
0 |
if (('\xFF' == aBuf[1]) && ('\x00' == aBuf[2]) && ('\x00' == aBuf[3]))
|
|
0 |
0 |
if (('\xFF' == aBuf[1]) && ('\x00' == aBuf[2]) && ('\x00' == aBuf[3]))
|
125
|
0 |
0 |
else if ('\xFF' == aBuf[1])
|
130
|
0 |
0 |
if (('\x00' == aBuf[1]) && ('\xFE' == aBuf[2]) && ('\xFF' == aBuf[3]))
|
|
0 |
0 |
if (('\x00' == aBuf[1]) && ('\xFE' == aBuf[2]) && ('\xFF' == aBuf[3]))
|
|
0 |
0 |
if (('\x00' == aBuf[1]) && ('\xFE' == aBuf[2]) && ('\xFF' == aBuf[3]))
|
133
|
0 |
0 |
else if (('\x00' == aBuf[1]) && ('\xFF' == aBuf[2]) && ('\xFE' == aBuf[3]))
|
|
0 |
0 |
else if (('\x00' == aBuf[1]) && ('\xFF' == aBuf[2]) && ('\xFE' == aBuf[3]))
|
|
0 |
0 |
else if (('\x00' == aBuf[1]) && ('\xFF' == aBuf[2]) && ('\xFE' == aBuf[3]))
|
138
|
0 |
0 |
if (('\xFE' == aBuf[1]) && ('\x00' == aBuf[2]) && ('\x00' == aBuf[3]))
|
|
0 |
0 |
if (('\xFE' == aBuf[1]) && ('\x00' == aBuf[2]) && ('\x00' == aBuf[3]))
|
|
0 |
0 |
if (('\xFE' == aBuf[1]) && ('\x00' == aBuf[2]) && ('\x00' == aBuf[3]))
|
141
|
0 |
0 |
else if ('\xFE' == aBuf[1])
|
147
|
4 |
0 |
if (mDetectedCharset)
|
155
|
46 |
4 |
for (i = 0; i < aLen; i++)
|
158
|
28 |
18 |
if (aBuf[i] & '\x80' && aBuf[i] != '\xA0') //Since many Ascii only page contains NBSP
|
161
|
4 |
24 |
if (mInputState != eHighbyte)
|
167
|
0 |
4 |
if (mEscCharSetProber) {
|
168
|
0 |
0 |
delete mEscCharSetProber;
|
173
|
4 |
0 |
if (nsnull == mCharSetProbers[0])
|
174
|
4 |
0 |
mCharSetProbers[0] = new nsMBCSGroupProber;
|
175
|
4 |
0 |
if (nsnull == mCharSetProbers[1])
|
176
|
4 |
0 |
mCharSetProbers[1] = new nsSBCSGroupProber;
|
177
|
4 |
0 |
if (nsnull == mCharSetProbers[2])
|
180
|
4 |
0 |
if ((nsnull == mCharSetProbers[0]) ||
|
|
4 |
0 |
if ((nsnull == mCharSetProbers[0]) ||
|
181
|
4 |
0 |
(nsnull == mCharSetProbers[1]) ||
|
189
|
2 |
16 |
if ( ePureAscii == mInputState &&
|
|
2 |
0 |
if ( ePureAscii == mInputState &&
|
190
|
0 |
2 |
(aBuf[i] == '\033' || (aBuf[i] == '{' && mLastChar == '~')) )
|
|
0 |
0 |
(aBuf[i] == '\033' || (aBuf[i] == '{' && mLastChar == '~')) )
|
203
|
0 |
0 |
if (nsnull == mEscCharSetProber) {
|
204
|
0 |
0 |
mEscCharSetProber = new nsEscCharSetProber;
|
205
|
0 |
0 |
if (nsnull == mEscCharSetProber)
|
209
|
0 |
0 |
if (st == eFoundIt)
|
216
|
12 |
4 |
for (i = 0; i < NUM_OF_CHARSET_PROBERS; i++)
|
219
|
0 |
12 |
if (st == eFoundIt)
|
238
|
4 |
0 |
if (!mGotData)
|
245
|
0 |
4 |
if (mDetectedCharset)
|
252
|
4 |
0 |
switch (mInputState)
|
260
|
12 |
4 |
for (PRInt32 i = 0; i < NUM_OF_CHARSET_PROBERS; i++)
|
263
|
4 |
8 |
if (proberConfidence > maxProberConfidence)
|
270
|
4 |
0 |
if (maxProberConfidence > MINIMUM_THRESHOLD)
|