Lines Matching refs:end
14 if (end - ptr < n) \
33 #define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument
35 if (end - ptr < n) \
44 #define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument
57 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \
58 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \
59 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr)
61 #define CHECK_NMSTRT_CASE(n, enc, ptr, end, nextTokPtr) \ argument
63 if (end - ptr < n) \
72 #define CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) \ argument
82 CHECK_NMSTRT_CASE(2, enc, ptr, end, nextTokPtr) \
83 CHECK_NMSTRT_CASE(3, enc, ptr, end, nextTokPtr) \
84 CHECK_NMSTRT_CASE(4, enc, ptr, end, nextTokPtr)
94 const char *end, const char **nextTokPtr) in PREFIX()
96 if (ptr < end) { in PREFIX()
102 while (ptr < end) { in PREFIX()
106 if ((ptr += MINBPC(enc)) == end) in PREFIX()
109 if ((ptr += MINBPC(enc)) == end) in PREFIX()
132 const char *end, const char **nextTokPtr) in PREFIX()
134 if (ptr == end) in PREFIX()
138 return PREFIX(scanComment)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
150 while (ptr < end) { in PREFIX()
153 if (ptr + MINBPC(enc) == end) in PREFIX()
179 const char *end, int *tokPtr) in PREFIX()
183 if (end - ptr != MINBPC(enc)*3) in PREFIX()
224 const char *end, const char **nextTokPtr) in PREFIX()
228 if (ptr == end) in PREFIX()
231 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
236 while (ptr < end) { in PREFIX()
238 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
245 while (ptr < end) { in PREFIX()
250 if (ptr == end) in PREFIX()
269 if (ptr == end) in PREFIX()
286 const char *end, const char **nextTokPtr) in PREFIX()
292 if (end - ptr < 6 * MINBPC(enc)) in PREFIX()
306 const char *end, const char **nextTokPtr) in PREFIX()
308 if (ptr >= end) in PREFIX()
311 size_t n = end - ptr; in PREFIX()
316 end = ptr + n; in PREFIX()
322 if (ptr == end) in PREFIX()
327 if (ptr == end) in PREFIX()
337 if (ptr == end) in PREFIX()
351 while (ptr < end) { in PREFIX()
355 if (end - ptr < n || IS_INVALID_CHAR(enc, ptr, n)) { \ in PREFIX()
384 const char *end, const char **nextTokPtr) in PREFIX()
386 if (ptr == end) in PREFIX()
389 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
394 while (ptr < end) { in PREFIX()
396 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
398 for (ptr += MINBPC(enc); ptr < end; ptr += MINBPC(enc)) { in PREFIX()
433 const char *end, const char **nextTokPtr) in PREFIX()
435 if (ptr < end) { in PREFIX()
444 for (ptr += MINBPC(enc); ptr < end; ptr += MINBPC(enc)) { in PREFIX()
465 const char *end, const char **nextTokPtr) in PREFIX()
467 if (ptr < end) { in PREFIX()
469 return PREFIX(scanHexCharRef)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
477 for (ptr += MINBPC(enc); ptr < end; ptr += MINBPC(enc)) { in PREFIX()
496 PREFIX(scanRef)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
499 if (ptr == end) in PREFIX()
502 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
504 return PREFIX(scanCharRef)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
509 while (ptr < end) { in PREFIX()
511 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
526 PREFIX(scanAtts)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
532 while (ptr < end) { in PREFIX()
534 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
543 if (ptr == end) in PREFIX()
546 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
558 if (ptr == end) in PREFIX()
582 if (ptr == end) in PREFIX()
601 if (ptr == end) in PREFIX()
610 int tok = PREFIX(scanRef)(enc, ptr + MINBPC(enc), end, &ptr); in PREFIX()
627 if (ptr == end) in PREFIX()
645 if (ptr == end) in PREFIX()
648 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
658 if (ptr == end) in PREFIX()
685 PREFIX(scanLt)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
691 if (ptr == end) in PREFIX()
694 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
696 if ((ptr += MINBPC(enc)) == end) in PREFIX()
700 return PREFIX(scanComment)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
703 end, nextTokPtr); in PREFIX()
708 return PREFIX(scanPi)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
710 return PREFIX(scanEndTag)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
719 while (ptr < end) { in PREFIX()
721 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
730 if (ptr == end) in PREFIX()
733 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
743 while (ptr < end) { in PREFIX()
745 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
757 return PREFIX(scanAtts)(enc, ptr, end, nextTokPtr); in PREFIX()
768 if (ptr == end) in PREFIX()
785 PREFIX(contentTok)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
788 if (ptr >= end) in PREFIX()
791 size_t n = end - ptr; in PREFIX()
796 end = ptr + n; in PREFIX()
801 return PREFIX(scanLt)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
803 return PREFIX(scanRef)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
806 if (ptr == end) in PREFIX()
817 if (ptr == end) in PREFIX()
822 if (ptr == end) in PREFIX()
835 while (ptr < end) { in PREFIX()
839 if (end - ptr < n || IS_INVALID_CHAR(enc, ptr, n)) { \ in PREFIX()
848 if (ptr + MINBPC(enc) != end) { in PREFIX()
853 if (ptr + 2*MINBPC(enc) != end) { in PREFIX()
884 PREFIX(scanPercent)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
887 if (ptr == end) in PREFIX()
890 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
898 while (ptr < end) { in PREFIX()
900 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
913 PREFIX(scanPoundName)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
916 if (ptr == end) in PREFIX()
919 CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
924 while (ptr < end) { in PREFIX()
926 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
941 const char *ptr, const char *end, in PREFIX()
944 while (ptr < end) { in PREFIX()
953 if (ptr == end) in PREFIX()
972 PREFIX(prologTok)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
976 if (ptr >= end) in PREFIX()
979 size_t n = end - ptr; in PREFIX()
984 end = ptr + n; in PREFIX()
989 return PREFIX(scanLit)(BT_QUOT, enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
991 return PREFIX(scanLit)(BT_APOS, enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
995 if (ptr == end) in PREFIX()
999 return PREFIX(scanDecl)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
1001 return PREFIX(scanPi)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
1015 if (ptr + MINBPC(enc) == end) { in PREFIX()
1016 *nextTokPtr = end; in PREFIX()
1024 if (ptr == end) in PREFIX()
1031 if (ptr + MINBPC(enc) != end) in PREFIX()
1042 return PREFIX(scanPercent)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
1051 if (ptr == end) in PREFIX()
1054 if (ptr + MINBPC(enc) == end) in PREFIX()
1068 if (ptr == end) in PREFIX()
1095 return PREFIX(scanPoundName)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
1098 if (end - ptr < n) \ in PREFIX()
1144 while (ptr < end) { in PREFIX()
1146 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
1157 if (ptr == end) in PREFIX()
1161 CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) in PREFIX()
1204 const char *end, const char **nextTokPtr) in PREFIX()
1207 if (ptr >= end) in PREFIX()
1210 while (ptr < end) { in PREFIX()
1218 return PREFIX(scanRef)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
1235 if (ptr == end) in PREFIX()
1262 const char *end, const char **nextTokPtr) in PREFIX()
1265 if (ptr >= end) in PREFIX()
1268 while (ptr < end) { in PREFIX()
1276 return PREFIX(scanRef)(enc, ptr + MINBPC(enc), end, nextTokPtr); in PREFIX()
1282 end, nextTokPtr); in PREFIX()
1297 if (ptr == end) in PREFIX()
1319 const char *end, const char **nextTokPtr) in PREFIX()
1323 size_t n = end - ptr; in PREFIX()
1326 end = ptr + n; in PREFIX()
1329 while (ptr < end) { in PREFIX()
1333 if ((ptr += MINBPC(enc)) == end) in PREFIX()
1336 if ((ptr += MINBPC(enc)) == end) in PREFIX()
1345 if ((ptr += MINBPC(enc)) == end) in PREFIX()
1348 if ((ptr += MINBPC(enc)) == end) in PREFIX()
1371 PREFIX(isPublicId)(const ENCODING *enc, const char *ptr, const char *end, in PREFIX()
1375 end -= MINBPC(enc); in PREFIX()
1376 for (; ptr < end; ptr += MINBPC(enc)) { in PREFIX()
1569 const char *end) in PREFIX()
1571 switch ((end - ptr)/MINBPC(enc)) { in PREFIX()
1744 const char *end, in PREFIX()
1747 while (ptr < end) { in PREFIX()
1763 if (ptr < end && BYTE_TYPE(enc, ptr) == BT_LF) in PREFIX()