mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 16:02:46 +08:00
dropped "c" prefix from class names
This commit is contained in:
@@ -54,24 +54,24 @@ CXWindowsClipboardTextConverter::getDataSize() const
|
||||
return 8;
|
||||
}
|
||||
|
||||
CString
|
||||
CXWindowsClipboardTextConverter::fromIClipboard(const CString& data) const
|
||||
String
|
||||
CXWindowsClipboardTextConverter::fromIClipboard(const String& data) const
|
||||
{
|
||||
return CUnicode::UTF8ToText(data);
|
||||
return Unicode::UTF8ToText(data);
|
||||
}
|
||||
|
||||
CString
|
||||
CXWindowsClipboardTextConverter::toIClipboard(const CString& data) const
|
||||
String
|
||||
CXWindowsClipboardTextConverter::toIClipboard(const String& data) const
|
||||
{
|
||||
// convert to UTF-8
|
||||
bool errors;
|
||||
CString utf8 = CUnicode::textToUTF8(data, &errors);
|
||||
String utf8 = Unicode::textToUTF8(data, &errors);
|
||||
|
||||
// if there were decoding errors then, to support old applications
|
||||
// that don't understand UTF-8 but can report the exact binary
|
||||
// UTF-8 representation, see if the data appears to be UTF-8. if
|
||||
// so then use it as is.
|
||||
if (errors && CUnicode::isUTF8(data)) {
|
||||
if (errors && Unicode::isUTF8(data)) {
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user