mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 08:22:08 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64561 954022d7-b5bf-4e40-9824-e11837661b57
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#ifndef _SERVER_COMPONENTS_UNICODE_CONVERTER_H
|
|
#define _SERVER_COMPONENTS_UNICODE_CONVERTER_H
|
|
|
|
#ifndef UNICODECONVERTER_USE_DYNAMIC_LIBRARY
|
|
#define UNICODECONVERTER_DECL_EXPORT
|
|
#else
|
|
#include "../DesktopEditor/common/base_export.h"
|
|
#define UNICODECONVERTER_DECL_EXPORT Q_DECL_EXPORT
|
|
#endif
|
|
|
|
#include <string>
|
|
#include "UnicodeConverter_Encodings.h"
|
|
|
|
namespace NSUnicodeConverter
|
|
{
|
|
class CUnicodeConverter_Private;
|
|
class UNICODECONVERTER_DECL_EXPORT CUnicodeConverter
|
|
{
|
|
public:
|
|
CUnicodeConverter();
|
|
~CUnicodeConverter();
|
|
|
|
public:
|
|
std::string fromUnicode(const wchar_t* sInput, const unsigned int& nInputLen, const char* converterName);
|
|
std::string fromUnicode(const std::wstring& sSrc, const char* sCodePage);
|
|
|
|
std::wstring toUnicode(const char* sInput, const unsigned int& nInputLen, const char* converterName);
|
|
std::wstring toUnicode(const std::string& sSrc, const char* sCodePage);
|
|
|
|
private:
|
|
CUnicodeConverter_Private* m_pInternal;
|
|
};
|
|
}
|
|
|
|
#endif // _SERVER_COMPONENTS_UNICODE_CONVERTER_H
|