63 const char *in = ba.constData();
64 const char *
const end = ba.constEnd();
65 if ( qt_is_ascii( in, end ) )
68 return QString::fromLatin1( ba, ba.size() );
71 QByteArray intermediate = ba;
72 intermediate.resize( ba.size() * 3 - ( in - ba.constData() ) );
73 uchar *out =
reinterpret_cast<uchar *
>( intermediate.data() + ( in - ba.constData() ) );
74 for ( ; in < end; ++in )
86 *out++ = uchar( *in );
90 return QString::fromLatin1( intermediate, out -
reinterpret_cast<uchar *
>( intermediate.data() ) );