This commit is contained in:
Igor Pavlov
2018-05-02 22:28:04 +01:00
committed by Kornel
parent f19b649c73
commit 18dc2b4161
121 changed files with 3523 additions and 1866 deletions

View File

@@ -545,6 +545,8 @@ public:
void ReplaceOneCharAtPos(unsigned pos, wchar_t c) { _chars[pos] = c; }
wchar_t *GetBuf() { return _chars; }
wchar_t *GetBuf(unsigned minLen)
{
if (minLen > _limit)
@@ -571,7 +573,7 @@ public:
}
UString &operator=(wchar_t c);
UString &operator=(char c) { return (*this)=((wchar_t)c); }
UString &operator=(char c) { return (*this)=((wchar_t)(unsigned char)c); }
UString &operator=(const wchar_t *s);
UString &operator=(const UString &s);
void SetFrom(const wchar_t *s, unsigned len); // no check