remove xcerces2
This commit is contained in:
@@ -49,17 +49,10 @@ std::string XMLTools::toStdString(const XMLCh* const toTranscode)
|
||||
|
||||
//char outBuff[128];
|
||||
static XMLByte outBuff[128];
|
||||
#if (XERCES_VERSION_MAJOR == 2)
|
||||
unsigned int outputLength;
|
||||
unsigned int eaten = 0;
|
||||
unsigned int offset = 0;
|
||||
unsigned int inputLength = XMLString::stringLen(toTranscode);
|
||||
#else
|
||||
XMLSize_t outputLength;
|
||||
XMLSize_t eaten = 0;
|
||||
XMLSize_t offset = 0;
|
||||
XMLSize_t inputLength = XMLString::stringLen(toTranscode);
|
||||
#endif
|
||||
|
||||
while (inputLength)
|
||||
{
|
||||
@@ -87,17 +80,10 @@ std::basic_string<XMLCh> XMLTools::toXMLString(const char* const fromTranscode)
|
||||
|
||||
static XMLCh outBuff[128];
|
||||
const XMLByte* xmlBytes = reinterpret_cast<const XMLByte*>(fromTranscode);
|
||||
#if (XERCES_VERSION_MAJOR == 2)
|
||||
unsigned int outputLength;
|
||||
unsigned int eaten = 0;
|
||||
unsigned int offset = 0;
|
||||
unsigned int inputLength = std::string(fromTranscode).size();
|
||||
#else
|
||||
XMLSize_t outputLength;
|
||||
XMLSize_t eaten = 0;
|
||||
XMLSize_t offset = 0;
|
||||
XMLSize_t inputLength = std::string(fromTranscode).size();
|
||||
#endif
|
||||
|
||||
unsigned char* charSizes = new unsigned char[inputLength];
|
||||
while (inputLength)
|
||||
|
||||
Reference in New Issue
Block a user