GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
CharsetOperator.h
1
29
#ifndef GPGFRONTEND_CHARSETDETECTOR_H
30
#define GPGFRONTEND_CHARSETDETECTOR_H
31
32
#include <string>
33
34
#include "core/GpgFrontendCore.h"
35
36
namespace
GpgFrontend
{
37
38
class
GPGFRONTEND_CORE_EXPORT
CharsetOperator
{
39
public
:
40
using
CharsetInfo = std::tuple<std::string, std::string, int>;
41
42
static
CharsetInfo Detect(
const
std::string &buffer);
43
44
static
bool
Convert2Utf8(
const
std::string &buffer, std::string &out_buffer,
45
std::string from_charset_name);
46
};
47
}
// namespace GpgFrontend
48
49
#endif // GPGFRONTEND_CHARSETDETECTOR_H
GpgFrontend
Definition:
CoreCommonUtil.cpp:29
GpgFrontend::CharsetOperator::Detect
static CharsetInfo Detect(const std::string &buffer)
Definition:
CharsetOperator.cpp:42
GpgFrontend::CharsetOperator
Definition:
CharsetOperator.h:38
src
core
function
CharsetOperator.h
Generated by
1.8.17