Commit c5ce1e27 authored by ElenaSubbotina's avatar ElenaSubbotina

x2t version up

parent 7ecc7fa1
...@@ -33,9 +33,6 @@ ...@@ -33,9 +33,6 @@
#include "CFRecord.h" #include "CFRecord.h"
#include "CFStream.h" #include "CFStream.h"
#ifdef __linux__
#include <string.h>
#endif
namespace XLS namespace XLS
{ {
......
...@@ -68,7 +68,7 @@ void FileMoniker::load(XLS::CFRecord& record) ...@@ -68,7 +68,7 @@ void FileMoniker::load(XLS::CFRecord& record)
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
unicodePath = std::wstring(record.getCurData<wchar_t>(), cbUnicodePathBytes / 2); unicodePath = std::wstring(record.getCurData<wchar_t>(), cbUnicodePathBytes / 2);
#else #else
unicodePath = XLS::convertUtf16ToWString(record.getCurData<UTF16>(), cbUnicodePathBytes / 2); unicodePath = convertUtf16ToWString(record.getCurData<UTF16>(), cbUnicodePathBytes / 2);
#endif #endif
record.skipNunBytes(cbUnicodePathBytes); record.skipNunBytes(cbUnicodePathBytes);
} }
......
...@@ -65,7 +65,7 @@ void ItemMoniker::load(XLS::CFRecord& record) ...@@ -65,7 +65,7 @@ void ItemMoniker::load(XLS::CFRecord& record)
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
delimiterUnicode = std::wstring(record.getCurData<wchar_t>(), sizeof_delimiterUnicode / 2); delimiterUnicode = std::wstring(record.getCurData<wchar_t>(), sizeof_delimiterUnicode / 2);
#else #else
delimiterUnicode = XLS::convertUtf16ToWString(record.getCurData<UTF16>(), sizeof_delimiterUnicode / 2); delimiterUnicode = convertUtf16ToWString(record.getCurData<UTF16>(), sizeof_delimiterUnicode / 2);
#endif #endif
record.skipNunBytes(sizeof_delimiterUnicode); record.skipNunBytes(sizeof_delimiterUnicode);
} }
...@@ -80,7 +80,7 @@ void ItemMoniker::load(XLS::CFRecord& record) ...@@ -80,7 +80,7 @@ void ItemMoniker::load(XLS::CFRecord& record)
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
itemUnicode = std::wstring(record.getCurData<wchar_t>(), sizeof_itemUnicode / 2); itemUnicode = std::wstring(record.getCurData<wchar_t>(), sizeof_itemUnicode / 2);
#else #else
itemUnicode = XLS::convertUtf16ToWString(record.getCurData<UTF16>(), sizeof_itemUnicode / 2); itemUnicode = convertUtf16ToWString(record.getCurData<UTF16>(), sizeof_itemUnicode / 2);
#endif #endif
record.skipNunBytes(sizeof_itemUnicode); record.skipNunBytes(sizeof_itemUnicode);
} }
......
...@@ -544,7 +544,7 @@ void anyString::ReadComplexData(XLS::CFRecord& record) ...@@ -544,7 +544,7 @@ void anyString::ReadComplexData(XLS::CFRecord& record)
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
string_ = std::wstring(record.getCurData<wchar_t>(), op); string_ = std::wstring(record.getCurData<wchar_t>(), op);
#else #else
string_ = XLS::convertUtf16ToWString(record.getCurData<UTF16>(), op); string_ = convertUtf16ToWString(record.getCurData<UTF16>(), op);
#endif #endif
if (!string_.empty()) if (!string_.empty())
{ {
......
...@@ -62,6 +62,10 @@ wide string into utf8 char*: ...@@ -62,6 +62,10 @@ wide string into utf8 char*:
#include <string> #include <string>
#include <list> #include <list>
#ifdef __linux__
#include <string.h>
#endif
#include "../../../Common/DocxFormat/Source/Base/unicode_util.h" #include "../../../Common/DocxFormat/Source/Base/unicode_util.h"
static std::wstring convertUtf16ToWString(const UTF16 * Data, int nLength) static std::wstring convertUtf16ToWString(const UTF16 * Data, int nLength)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
QT -= core QT -= core
QT -= gui QT -= gui
VERSION = 2.4.485.0 VERSION = 2.4.486.0
DEFINES += INTVER=$$VERSION DEFINES += INTVER=$$VERSION
TARGET = x2t TARGET = x2t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment