CharsetOperator.h
#ifndef GPGFRONTEND_CHARSETDETECTOR_H
#define GPGFRONTEND_CHARSETDETECTOR_H
#include "core/GpgFrontendCore.h"
namespace GpgFrontend {
class GPGFRONTEND_CORE_EXPORT CharsetOperator {
public:
using CharsetInfo = std::tuple<std::string, std::string, int>;
static CharsetInfo Detect(const std::string &buffer);
static bool Convert2Utf8(const std::string &buffer, std::string &out_buffer,
std::string from_charset_name);
};
} // namespace GpgFrontend
#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:36