| 674 | ~IntNumberP(){} |
| 675 | |
| 676 | virtual bool Parse(char** str, SpaceRule space) |
| 677 | { |
| 678 | char* curr = *str; |
| 679 | if(space) |
| 680 | space(str); |
| 681 | while(isDigit(*str[0])) |
| 682 | (*str)++; |
| 683 | if(curr == *str) |
| 684 | return false; //no characters were parsed |
| 685 | return true; |
| 686 | } |
| 687 | private: |
| 688 | int m_base; |
| 689 | }; |