No ASCII version of endsWith.
authorScott Cantor <cantor.2@osu.edu>
Tue, 13 Feb 2007 16:30:30 +0000 (16:30 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 13 Feb 2007 16:30:30 +0000 (16:30 +0000)
xmltooling/util/ParserPool.cpp

index 06bf8ab..a06e07f 100644 (file)
@@ -247,10 +247,9 @@ DOMInputSource* ParserPool::resolveEntity(const XMLCh* const publicId, const XML
 
     // Check for entity as a value in the map.
     for (i=m_schemaLocMap.begin(); i!=m_schemaLocMap.end(); ++i) {
-        if (XMLString::endsWith(i->second.c_str(), temp.get())) {
-            auto_ptr_XMLCh temp2(i->second.c_str());
+        auto_ptr_XMLCh temp2(i->second.c_str());
+        if (XMLString::endsWith(temp2.get(), systemId))
             return new Wrapper4InputSource(new LocalFileInputSource(baseURI,temp2.get()));
-        }
     }
 
     // We'll allow anything without embedded slashes.