version 1.1.1.1, 2012/02/21 23:00:54
|
version 1.1.1.2, 2014/06/15 16:09:43
|
Line 885 PREFIX(scanPercent)(const ENCODING *enc, const char *p
|
Line 885 PREFIX(scanPercent)(const ENCODING *enc, const char *p
|
const char **nextTokPtr) |
const char **nextTokPtr) |
{ |
{ |
if (ptr == end) |
if (ptr == end) |
return -XML_TOK_PERCENT; | return XML_TOK_PARTIAL; |
switch (BYTE_TYPE(enc, ptr)) { |
switch (BYTE_TYPE(enc, ptr)) { |
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) |
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) |
case BT_S: case BT_LF: case BT_CR: case BT_PERCNT: |
case BT_S: case BT_LF: case BT_CR: case BT_PERCNT: |
Line 1744 PREFIX(updatePosition)(const ENCODING *enc,
|
Line 1744 PREFIX(updatePosition)(const ENCODING *enc,
|
const char *end, |
const char *end, |
POSITION *pos) |
POSITION *pos) |
{ |
{ |
while (ptr != end) { | while (ptr < end) { |
switch (BYTE_TYPE(enc, ptr)) { |
switch (BYTE_TYPE(enc, ptr)) { |
#define LEAD_CASE(n) \ |
#define LEAD_CASE(n) \ |
case BT_LEAD ## n: \ |
case BT_LEAD ## n: \ |