(file) Return to XmlParser.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/XmlParser.cpp between version 1.53 and 1.53.2.1

version 1.53, 2008/12/16 18:56:01 version 1.53.2.1, 2009/02/09 11:35:00
Line 428 
Line 428 
  
 static inline void _normalizeElementValue( static inline void _normalizeElementValue(
     Uint32& line,     Uint32& line,
     char*& p)      char*& p,
       Uint32 &textLen)
 { {
     // Process one character at a time:     // Process one character at a time:
  
     char* q = p;     char* q = p;
       char *start = p;
  
     while (*p && (*p != '<'))     while (*p && (*p != '<'))
     {     {
Line 483 
Line 485 
     {     {
         *q = '\0';         *q = '\0';
     }     }
       textLen = (Uint32)(q - start);
 } }
  
 static inline void _normalizeAttributeValue( static inline void _normalizeAttributeValue(
Line 638 
Line 641 
             // Normalize the content:             // Normalize the content:
  
             char* start = _current;             char* start = _current;
             _normalizeElementValue(_line, _current);              Uint32 textLen;
               _normalizeElementValue(_line, _current, textLen);
  
             // Get the content:             // Get the content:
  
             entry.type = XmlEntry::CONTENT;             entry.type = XmlEntry::CONTENT;
             entry.text = start;             entry.text = start;
               entry.textLen = textLen;
  
             // Overwrite '<' with a null character (temporarily).             // Overwrite '<' with a null character (temporarily).
  
Line 1016 
Line 1021 
             entry.type = XmlEntry::CDATA;             entry.type = XmlEntry::CDATA;
             entry.text = p;             entry.text = p;
             _getCData(p);             _getCData(p);
               entry.textLen = strlen(entry.text);
             return;             return;
         }         }
         else if (memcmp(p, "DOCTYPE", 7) == 0)         else if (memcmp(p, "DOCTYPE", 7) == 0)


Legend:
Removed from v.1.53  
changed lines
  Added in v.1.53.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2