mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
.
This commit is contained in:
@ -32,11 +32,8 @@
|
||||
#ifndef _BUILD_XMLLIGHT_PRIVATE_CROSSPLATFORM_H_
|
||||
#define _BUILD_XMLLIGHT_PRIVATE_CROSSPLATFORM_H_
|
||||
|
||||
#include "../../../DesktopEditor/common/File.h"
|
||||
|
||||
#include "../libxml2/libxml.h"
|
||||
#include "../libxml2/include/libxml/xmlreader.h"
|
||||
#include "../include/xmlutils.h"
|
||||
|
||||
namespace XmlUtils
|
||||
{
|
||||
@ -431,25 +428,6 @@ namespace XmlUtils
|
||||
return 1 == xmlTextReaderIsEmptyElement(reader) ? true : false;
|
||||
}
|
||||
|
||||
std::wstring GetNamespacePrefix()
|
||||
{
|
||||
xmlChar* pName = xmlTextReaderPrefix(reader);
|
||||
if (NULL == pName)
|
||||
return L"";
|
||||
|
||||
std::wstring sTemp = NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)pName, (LONG)strlen((const char*)pName));
|
||||
free(pName);
|
||||
return sTemp;
|
||||
}
|
||||
XmlNodeType GetNodeType()
|
||||
{
|
||||
return (XmlUtils::XmlNodeType)xmlTextReaderNodeType(reader);
|
||||
}
|
||||
bool IsDefaultAttribute()
|
||||
{
|
||||
return (0 != xmlTextReaderIsDefault(reader)) ? true : false;
|
||||
}
|
||||
|
||||
private:
|
||||
inline std::wstring GetXml(bool bInner)
|
||||
{
|
||||
@ -532,4 +510,4 @@ namespace XmlUtils
|
||||
};
|
||||
}
|
||||
|
||||
#endif // _BUILD_XMLLIGHT_PRIVATE_CROSSPLATFORM_H_
|
||||
#endif // _BUILD_XMLLIGHT_PRIVATE_CROSSPLATFORM_H_
|
||||
Reference in New Issue
Block a user