PIString and PIChar fixes

This commit is contained in:
Andrey
2022-03-25 13:49:32 +03:00
parent 8bb1af8d2a
commit 649850a1ba
3 changed files with 274 additions and 131 deletions

View File

@@ -38,19 +38,19 @@ class PIP_EXPORT PIChar
public:
//! \~english Contructs Ascii symbol
//! \~russian Создает символ Ascii
PIChar(const char c) {ch = c; ch &= 0xFF;}
//! \~english Contructs 2-bytes symbol
//! \~russian Создает 2-байтный символ
PIChar(const short c) {ch = c;}
PIChar(char c) {ch = c; ch &= 0xFF;}
//! \~english Contructs ascii symbol
//! \~russian Создает символ Ascii
PIChar(const uchar c) {ch = c;}
PIChar(uchar c) {ch = c;}
//! \~english Contructs 2-bytes symbol
//! \~russian Создает 2-байтный символ
PIChar(const ushort c = 0) {ch = c;}
PIChar(ushort c = 0) {ch = c;}
//! \~english Contructs 2-bytes symbol from `wchar_t`
//! \~russian Создает 2-байтный символ из `wchar_t`
PIChar(wchar_t c) {ch = c;}
//! \~english Contructs symbol from system locale and no more than 4 bytes of string
//! \~russian Создает символ из системной локали не более 4 байт длины