Browse Source

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
master
Tomasz Sowa 12 years ago
parent
commit
c807d1c9b3
  1. 2
      src/Makefile.dep
  2. 5
      src/ezc.cpp

2
src/Makefile.dep

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

5
src/ezc.cpp

@ -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;

Loading…
Cancel
Save