Ignore:
Timestamp:
May 19, 2013, 9:20:51 AM (6 years ago)
Author:
cameron
Message:

Fixes for icXML 0.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/icxercesc/internal/XMLReader.hpp

    r3150 r3157  
    837837}
    838838
    839 inline void XMLReader::handleEOL(XMLCh & curCh, bool inDecl)
    840 {
    841     // Handle line/col tracking for any character-at-a-time parsing modes.
    842     if (unlikely(inDecl))
    843     {
    844         if (curCh == chNEL || curCh == chLineSeparator)
    845         {
    846             /***
    847              * XML1.1
    848              *
    849              * 2.11 End-of-Line Handling
    850              *  ...
    851              *   The characters #x85 and #x2028 cannot be reliably recognized and translated
    852              *   until an entity's encoding declaration (if present) has been read.
    853              *   Therefore, it is a fatal error to use them within the XML declaration or
    854              *   text declaration.
    855              *
    856              ***/
    857             ThrowXMLwithMemMgr1
    858             (
    859                 TranscodingException
    860                 , XMLExcepts::Reader_NelLsepinDecl
    861                 , fSystemId
    862                 , fMemoryManager
    863             );
    864         }
    865     }
    866 
    867     if (unlikely(curCh == chLF))
    868     {
    869         fCurCol = 1;
    870         fCurLine++;
    871     }
    872     else
    873     {
    874         fCurCol++;
    875     }
    876 }
    877 
    878839inline XMLSize_t XMLReader::calculateRawBufIndex()
    879840{
Note: See TracChangeset for help on using the changeset viewer.