218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
/* Ensure we don't count this character twice */
if (i != j)
continue;
if (buf[i] == '\r' || (buf[i] == '\n' && !lastCarriageReturn))
lineNumber++;
lastCarriageReturn = (buf[i] == '\r' ? YES : NO);
}
/* In OF_XMLPARSER_IN_TAG, there can be only spaces */
if (size - last > 0 && state != OF_XMLPARSER_IN_TAG)
[cache appendCStringWithoutUTF8Checking: buf + last
length: size - last];
}
|
|
|
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
/* Ensure we don't count this character twice */
if (i != j)
continue;
if (buf[i] == '\r' || (buf[i] == '\n' && !lastCarriageReturn))
lineNumber++;
lastCarriageReturn = (buf[i] == '\r');
}
/* In OF_XMLPARSER_IN_TAG, there can be only spaces */
if (size - last > 0 && state != OF_XMLPARSER_IN_TAG)
[cache appendCStringWithoutUTF8Checking: buf + last
length: size - last];
}
|