C++ hygiene

This commit is contained in:
Keith Winstein
2010-12-28 22:46:45 -05:00
parent b38d1280c1
commit 49c7b66835
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
using namespace Parser;
Transition State::anywhere_rule( wchar_t ch )
const Transition State::anywhere_rule( wchar_t ch )
{
if ( (ch == 0x18) || (ch == 0x1A)
|| ((0x80 <= ch) && (ch <= 0x8F))
@@ -26,7 +26,7 @@ Transition State::anywhere_rule( wchar_t ch )
return Transition( Ignore(), NULL );
}
Transition State::input( wchar_t ch )
const Transition State::input( wchar_t ch )
{
Transition any = anywhere_rule( ch );
if ( any.next_state ) {
+5 -5
View File
@@ -7,14 +7,14 @@ namespace Parser {
class State
{
protected:
virtual Transition input_state_rule( wchar_t ch ) { ch = ch; return Transition( Ignore(), NULL ); }
const virtual Transition input_state_rule( wchar_t ch ) { ch = ch; return Transition( Ignore(), NULL ); }
private:
virtual Action enter( void ) { return Ignore(); };
virtual Action leave( void ) { return Ignore(); };
const virtual Action enter( void ) { return Ignore(); };
const virtual Action leave( void ) { return Ignore(); };
Transition input( wchar_t ch );
Transition anywhere_rule( wchar_t ch );
const Transition input( wchar_t ch );
const static Transition anywhere_rule( wchar_t ch );
public:
virtual ~State() {};