diff --git a/src/ezc.cpp b/src/ezc.cpp index 84d0be1..6011c10 100644 --- a/src/ezc.cpp +++ b/src/ezc.cpp @@ -121,7 +121,8 @@ void SplitUnixDirectory(const std::string & name, std::string & dir, std::string Pattern::Pattern() { - allow_include = true; + allow_include = true; + delete_all_white = false; } @@ -237,13 +238,40 @@ return *(itext++); } +bool Pattern::IsWhite(int c ) +{ + if( c==' ' || c=='\t' || c==13 ) + return true; + +return false; +} + + void Pattern::SkipWhiteCharacters() { - while( *itext==' ' || *itext=='\t' ) + while( IsWhite(*itext) ) ++itext; } +void Pattern::CheckWhiteAndDelete(std::string & s) +{ +std::string::size_type i; + + if( s.empty() ) + return; + + for(i=0 ; i