piChar mbrtowc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user