Files
core/Common/DocxFormat/Source/Utility/Encoding.h
Ivan.Shulga b4c6725e0d linux build
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58499 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 23:16:43 +03:00

25 lines
867 B
C++

#pragma once
#ifndef UTILITY_ENCODING_INCLUDE_H_
#define UTILITY_ENCODING_INCLUDE_H_
#include "../Base/Base.h"
class Encoding
{
public:
static AVSINLINE const CStringA ansi2utf8 (const CStringA &sLine);
static AVSINLINE const CStringW ansi2unicode(const CStringA &sLine);
static AVSINLINE const CStringA utf82ansi (const CStringA &sLine);
static AVSINLINE const CStringW utf82unicode(const CStringA &sLine);
static AVSINLINE const CStringA unicode2ansi(const CStringW &sLine);
static AVSINLINE const CStringA unicode2utf8(const CStringW &sLine);
private:
static AVSINLINE const CStringA wstring2string(const CStringW &sLine, const unsigned int unCodePage);
static AVSINLINE const CStringW string2wstring(const CStringA &sLine, const unsigned int unCodePage);
};
#endif // UTILITY_ENCODING_INCLUDE_H_