mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 07:23:34 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58499 954022d7-b5bf-4e40-9824-e11837661b57
25 lines
867 B
C++
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_
|