Changeset 162 for trunk/src/xmldecl.c


Ignore:
Timestamp:
Jun 22, 2008, 9:02:39 AM (11 years ago)
Author:
cameron
Message:

Fix WhiteSpace? processing for EBCDIC as well as ASCII.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmldecl.c

    r160 r162  
    4949template <CodeUnit_Base C>
    5050inline void XML_Decl_Parser<C>::Scan_WS() {
    51         while (at_WhiteSpace<XML_1_0, C>(cur())) Advance(1);
     51        while (at_WhiteSpace_10<C>(cur())) Advance(1);
    5252}
    5353
     
    103103                return;
    104104        }
    105         if (!at_WhiteSpace<XML_1_0, ASCII>(cur())) DeclarationError(AbsPos());
     105        if (!at_WhiteSpace_10<C>(cur())) DeclarationError(AbsPos());
    106106        Scan_WS();
    107107        if (at_encoding<C>(cur())) {
     
    126126                        return;
    127127                }
    128                 if (!at_WhiteSpace<XML_1_0, ASCII>(cur())) DeclarationError(AbsPos());
     128                if (!at_WhiteSpace_10<C>(cur())) DeclarationError(AbsPos());
    129129                Scan_WS();
    130130        }
     
    174174                Advance(5);
    175175                // Must have whitespace character before declaration.
    176                 if (!at_WhiteSpace<XML_1_0, ASCII>(cur())) DeclarationError(AbsPos());
     176                if (!at_WhiteSpace_10<C>(cur())) DeclarationError(AbsPos());
    177177                Scan_WS();
    178178        }
Note: See TracChangeset for help on using the changeset viewer.