mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-30 21:39:19 +03:00
35 lines
644 B
C++
35 lines
644 B
C++
|
#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);
|
||
|
}
|