PIString wo pideue parent #91

Merged
peri4 merged 5 commits from pistring_unparent into master 2022-04-26 21:01:36 +03:00
Showing only changes of commit f7d6302572 - Show all commits

View File

@@ -221,7 +221,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
# else
std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> ucs2conv;
std::u16string ucs2 = ucs2conv.from_bytes(c, c+s);
enlarge(ucs2.size());
d.enlarge(ucs2.size());
ucs2.copy((char16_t *)d.data(old_sz), ucs2.size());
# endif
#endif