| 106 | } |
| 107 | |
| 108 | int cmXMLParser::ParseBuffer(char const* buffer, std::string::size_type count) |
| 109 | { |
| 110 | // Pass the buffer to the expat XML parser. |
| 111 | if (!XML_Parse(static_cast<XML_Parser>(this->Parser), buffer, |
| 112 | static_cast<int>(count), 0)) { |
| 113 | this->ReportXmlParseError(); |
| 114 | return 0; |
| 115 | } |
| 116 | return 1; |
| 117 | } |
| 118 | |
| 119 | int cmXMLParser::ParseBuffer(char const* buffer) |
| 120 | { |
no test coverage detected