mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 03:42:47 +08:00
18 lines
647 B
C++
18 lines
647 B
C++
#pragma once
|
|
#ifndef UTILITY_ENCODING_INCLUDE_H_
|
|
#define UTILITY_ENCODING_INCLUDE_H_
|
|
|
|
#include <string>
|
|
|
|
class Encoding
|
|
{
|
|
public:
|
|
static const std::wstring ansi2unicode (const std::string& line);
|
|
static const std::wstring cp2unicode (const std::string& line, const unsigned int codePage);
|
|
static const std::wstring utf82unicode (const std::string& line);
|
|
|
|
static const std::string unicode2ansi (const std::wstring& line);
|
|
static const std::string unicode2utf8 (const std::wstring& line);
|
|
static const std::string unicode2cp (const std::wstring& line, const unsigned int codePage);
|
|
};
|
|
#endif // UTILITY_ENCODING_INCLUDE_H_
|