piChar mbrtowc

This commit is contained in:
2022-04-25 22:14:42 +03:00
parent 2246b8b5fd
commit 095ecd254f
2 changed files with 6 additions and 28 deletions

View File

@@ -236,17 +236,6 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
mbsrtowcs(&wstr[0], &c, len+1, &state);
resize(len);
for (int i=0; i<len; ++i) (*this)[i] = wstr[i];
// wchar_t wc;
// //qDebug() << "FromChars ...";
// while (sz = mbrtowc(&wc, c, s, &state) > 0) {
// //qDebug() << "0" << s;
//// sz = mbrtowc(&wc, c, s, &state);
// //qDebug() << "1" << sz;
//// if (sz < 1) break;
// push_back(PIChar(wc));
// c += sz; s -= sz;
// //qDebug() << "2" << c;
// }
// //qDebug() << "FromChars done" << size();
# endif
#endif