as a white character can be ascii 160 code (nonbreakable space)

git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@297 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2010-06-30 18:43:33 +00:00
parent b89c6daa7d
commit c807d1c9b3
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
# DO NOT DELETE
ezc.o: ezc.h
edanticezc.o: ezc.h /home/tomek/roboczy/winix/core/log.h

View File

@ -298,7 +298,10 @@ return *(itext++);
bool Pattern::IsWhite(int c )
{
if( c==' ' || c=='\t' || c==13 )
// 13 is from a dos file at the end of a line (\r\n)
// 160 is an unbreakable space
if( c==' ' || c=='\t' || c==13 || c==160 )
return true;
return false;