Home | History | Annotate | Download | only in src

Lines Matching defs:nextChar

264     input->nextChar		= input->data;	/* Input at first character */
321 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
327 if ((ANTLR3_UCHAR)(*((pANTLR3_UINT8)input->nextChar)) == input->newlineChar)
333 input->currentLine = (void *)(((pANTLR3_UINT8)input->nextChar) + 1);
338 input->nextChar = (void *)(((pANTLR3_UINT8)input->nextChar) + 1);
356 if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
362 return (ANTLR3_UCHAR)(*((pANTLR3_UINT8)input->nextChar + la - 1));
383 if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
389 return (ANTLR3_UCHAR)toupper((*((pANTLR3_UINT8)input->nextChar + la - 1)));
422 return (ANTLR3_MARKER)(((pANTLR3_UINT8)input->nextChar));
482 state->nextChar = input->nextChar;
529 antlr38BitSeek(is, (ANTLR3_MARKER)(state->nextChar));
536 input->nextChar = state->nextChar;
581 if (seekPoint <= (ANTLR3_MARKER)(input->nextChar))
583 input->nextChar = ((pANTLR3_UINT8) seekPoint);
587 count = (ANTLR3_UINT32)(seekPoint - (ANTLR3_MARKER)(input->nextChar));
788 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
794 if ((ANTLR3_UCHAR)(*((pANTLR3_UINT16)input->nextChar)) == input->newlineChar)
800 input->currentLine = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
807 ch = *((UTF16*)input->nextChar);
811 input->nextChar = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
820 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
824 ch2 = *((UTF16*)input->nextChar);
832 input->nextChar = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
862 UTF16 * nextChar;
868 nextChar = input->nextChar;
874 while (--la > 0 && (pANTLR3_UINT8)nextChar < ((pANTLR3_UINT8)input->data) + input->sizeBuf )
880 ch = *nextChar++;
889 if ((pANTLR3_UINT8)(nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
893 ch2 = *nextChar;
901 nextChar++;
921 while (la++ < 0 && (pANTLR3_UINT8)nextChar > (pANTLR3_UINT8)input->data )
925 ch = *--nextChar;
932 ch2 = *(nextChar-1);
937 nextChar--;
943 // Our local copy of nextChar is now pointing to either the correct character or end of file
947 if ( (pANTLR3_UINT8)nextChar >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
955 ch = *nextChar++;
964 if ((pANTLR3_UINT8)(nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
968 ch2 = *nextChar;
1002 return (ANTLR3_MARKER)(input->nextChar);
1024 if (seekPoint <= (ANTLR3_MARKER)(input->nextChar))
1026 input->nextChar = (void *)seekPoint;
1032 while (is->_LA(is, 1) != ANTLR3_CHARSTREAM_EOF && seekPoint < (ANTLR3_MARKER)input->nextChar)
1070 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1076 if ((ANTLR3_UCHAR)(*((pANTLR3_UINT16)input->nextChar)) == input->newlineChar)
1082 input->currentLine = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
1089 ch = *((pANTLR3_UINT8)input->nextChar) + (*((pANTLR3_UINT8)input->nextChar + 1) <<8);
1093 input->nextChar = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
1102 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1104 ch2 = *((pANTLR3_UINT8)input->nextChar) + (*((pANTLR3_UINT8)input->nextChar + 1) <<8);
1112 input->nextChar = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
1142 pANTLR3_UCHAR nextChar;
1148 nextChar = input->nextChar;
1154 while (--la > 0 && (pANTLR3_UINT8)nextChar < ((pANTLR3_UINT8)input->data) + input->sizeBuf )
1160 ch = (*nextChar) + (*(nextChar+1) << 8);
1161 nextChar += 2;
1170 if ((pANTLR3_UINT8)(nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1174 ch2 = (*nextChar) + (*(nextChar+1) << 8);
1182 nextChar += 2;
1202 while (la++ < 0 && (pANTLR3_UINT8)nextChar > (pANTLR3_UINT8)input->data )
1206 ch = (*nextChar - 2) + ((*nextChar -1) << 8);
1207 nextChar -= 2;
1214 ch2 = (*nextChar - 2) + ((*nextChar -1) << 8);
1219 nextChar -=2;
1225 // Our local copy of nextChar is now pointing to either the correct character or end of file
1229 if ( (pANTLR3_UINT8)nextChar >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1237 ch = (*nextChar) + (*(nextChar+1) << 8);
1238 nextChar += 2;
1247 if ((pANTLR3_UINT8)(nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1251 ch2 = (*nextChar) + (*(nextChar+1) << 8);
1289 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1295 if ((ANTLR3_UCHAR)(*((pANTLR3_UINT16)input->nextChar)) == input->newlineChar)
1301 input->currentLine = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
1308 ch = *((pANTLR3_UINT8)input->nextChar + 1) + (*((pANTLR3_UINT8)input->nextChar ) <<8);
1312 input->nextChar = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
1321 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1325 ch2 = *((pANTLR3_UINT8)input->nextChar + 1) + (*((pANTLR3_UINT8)input->nextChar ) <<8);
1333 input->nextChar = (void *)(((pANTLR3_UINT16)input->nextChar) + 1);
1363 pANTLR3_UCHAR nextChar;
1369 nextChar = input->nextChar;
1375 while (--la > 0 && (pANTLR3_UINT8)nextChar < ((pANTLR3_UINT8)input->data) + input->sizeBuf )
1381 ch = ((*nextChar) << 8) + *(nextChar+1);
1382 nextChar += 2;
1391 if ((pANTLR3_UINT8)(nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1395 ch2 = ((*nextChar) << 8) + *(nextChar+1);
1403 nextChar += 2;
1423 while (la++ < 0 && (pANTLR3_UINT8)nextChar > (pANTLR3_UINT8)input->data )
1427 ch = ((*nextChar - 2) << 8) + (*nextChar -1);
1428 nextChar -= 2;
1435 ch2 = ((*nextChar - 2) << 8) + (*nextChar -1);
1440 nextChar -=2;
1446 // Our local copy of nextChar is now pointing to either the correct character or end of file
1450 if ( (pANTLR3_UINT8)nextChar >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1458 ch = ((*nextChar) << 8) + *(nextChar+1);
1459 nextChar += 2;
1468 if ((pANTLR3_UINT8)(nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1472 ch2 = ((*nextChar) << 8) + *(nextChar+1);
1578 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1584 if ((ANTLR3_UCHAR)(*((pANTLR3_UINT32)input->nextChar)) == input->newlineChar)
1590 input->currentLine = (void *)(((pANTLR3_UINT32)input->nextChar) + 1);
1595 input->nextChar = (void *)(((pANTLR3_UINT32)input->nextChar) + 1);
1609 return (ANTLR3_MARKER)(input->nextChar);
1644 if (seekPoint <= (ANTLR3_MARKER)(input->nextChar))
1646 input->nextChar = (void *)seekPoint;
1652 while (is->_LA(is, 1) != ANTLR3_CHARSTREAM_EOF && seekPoint < (ANTLR3_MARKER)input->nextChar)
1673 if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1679 return (ANTLR3_UCHAR)(*((pANTLR3_UINT32)input->nextChar + la - 1));
1697 if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1705 c = (ANTLR3_UCHAR)(*((pANTLR3_UINT32)input->nextChar + la - 1));
1728 if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1736 c = (ANTLR3_UCHAR)(*((pANTLR3_UINT32)input->nextChar + la - 1));
1809 pANTLR3_UINT8 nextChar;
1813 nextChar = input->nextChar;
1815 if (nextChar < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1823 extraBytesToRead = trailingBytesForUTF8[*nextChar];
1825 if (nextChar + extraBytesToRead >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1827 input->nextChar = (((pANTLR3_UINT8)input->data) + input->sizeBuf);
1837 case 5: ch += *nextChar++; ch <<= 6;
1838 case 4: ch += *nextChar++; ch <<= 6;
1839 case 3: ch += *nextChar++; ch <<= 6;
1840 case 2: ch += *nextChar++; ch <<= 6;
1841 case 1: ch += *nextChar++; ch <<= 6;
1842 case 0: ch += *nextChar++;
1854 input->currentLine = (void *)nextChar;
1859 input->nextChar = nextChar;
1875 pANTLR3_UINT8 nextChar;
1879 nextChar = input->nextChar;
1882 // - LA(0) is treated as LA(1) and we assume that the nextChar is
1892 if (nextChar < (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1902 nextChar += trailingBytesForUTF8[*nextChar] + 1;
1906 if (nextChar >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1921 while (nextChar > (pANTLR3_UINT8)input->data && la++ < 0)
1929 nextChar--;
1930 while ((*nextChar & 0xC0) == 0x80)
1932 nextChar--;
1937 // nextChar is now pointing at the UTF8 encoded character that we need to
1942 extraBytesToRead = trailingBytesForUTF8[*nextChar];
1943 if (nextChar + extraBytesToRead >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
1952 case 5: ch += *nextChar++; ch <<= 6;
1953 case 4: ch += *nextChar++; ch <<= 6;
1954 case 3: ch += *nextChar++; ch <<= 6;
1955 case 2: ch += *nextChar++; ch <<= 6;
1956 case 1: ch += *nextChar++; ch <<= 6;
1957 case 0: ch += *nextChar++;
2040 if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf))
2048 return e2a[(*((pANTLR3_UINT8)input->nextChar + la - 1))];