mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 16:31:44 +03:00
35 lines
644 B
C++
Executable File
35 lines
644 B
C++
Executable File
#include "CMSWindowsClipboardUTF16Converter.h"
|
|
#include "CUnicode.h"
|
|
|
|
//
|
|
// CMSWindowsClipboardUTF16Converter
|
|
//
|
|
|
|
CMSWindowsClipboardUTF16Converter::CMSWindowsClipboardUTF16Converter()
|
|
{
|
|
// do nothing
|
|
}
|
|
|
|
CMSWindowsClipboardUTF16Converter::~CMSWindowsClipboardUTF16Converter()
|
|
{
|
|
// do nothing
|
|
}
|
|
|
|
UINT
|
|
CMSWindowsClipboardUTF16Converter::getWin32Format() const
|
|
{
|
|
return CF_UNICODETEXT;
|
|
}
|
|
|
|
CString
|
|
CMSWindowsClipboardUTF16Converter::doFromIClipboard(const CString& data) const
|
|
{
|
|
return CUnicode::UTF8ToUTF16(data);
|
|
}
|
|
|
|
CString
|
|
CMSWindowsClipboardUTF16Converter::doToIClipboard(const CString& data) const
|
|
{
|
|
return CUnicode::UTF16ToUTF8(data);
|
|
}
|