Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ArchString.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10
11#include "common/Common.h"
12#include "common/IInterface.h"
13
14#include <stdarg.h>
15
17
21class ArchString : public IInterface
22{
23public:
24 ArchString() = default;
25 ArchString(const ArchString &) = delete;
26 ArchString(ArchString &&) = delete;
27 ~ArchString() override = default;
28
29 ArchString &operator=(const ArchString &) = delete;
31
33
44
46
47
49 int convStringMBToWC(wchar_t *, const char *, uint32_t n, bool *errors) const;
50
52 int convStringWCToMB(char *, const wchar_t *, uint32_t n, bool *errors) const;
53
56
58};
EWideCharEncoding
Wide character encodings.
Definition ArchString.h:37
int convStringWCToMB(char *, const wchar_t *, uint32_t n, bool *errors) const
Convert wide character string to multibyte string.
Definition ArchString.cpp:21
ArchString()=default
ArchString & operator=(ArchString &&)=delete
ArchString(const ArchString &)=delete
EWideCharEncoding
Wide character encodings.
Definition ArchString.h:37
@ kUTF16
The UTF-16 encoding.
Definition ArchString.h:40
@ kUCS4
The UCS-4 encoding.
Definition ArchString.h:39
@ kUTF32
The UTF-32 encoding.
Definition ArchString.h:41
@ kPlatformDetermined
Definition ArchString.h:42
@ kUCS2
The UCS-2 encoding.
Definition ArchString.h:38
EWideCharEncoding getWideCharEncoding() const
Return the architecture's native wide character encoding.
Definition ArchString.cpp:69
~ArchString() override=default
ArchString(ArchString &&)=delete
int convStringMBToWC(wchar_t *, const char *, uint32_t n, bool *errors) const
Convert multibyte string to wide character string.
Definition ArchString.cpp:78
ArchString & operator=(const ArchString &)=delete
Base class of interfaces.
Definition IInterface.h:18