Re: [Interest] Filling QString from raw UTF16 data

2012-08-12 Thread Konstantin Tokarev
12.08.2012, 00:25, "Thiago Macieira" : > On sábado, 11 de agosto de 2012 20.51.30, Konstantin Tokarev wrote: > >>  Hi all, >> >>  I'd like to use SCSU encoding from ICU library in my Qt application. Here is >>  a code of my decoding function: >> >>  QString result; >>  result.resize(maxSi

Re: [Interest] Filling QString from raw UTF16 data

2012-08-11 Thread Thiago Macieira
On sábado, 11 de agosto de 2012 20.51.30, Konstantin Tokarev wrote: > Hi all, > > I'd like to use SCSU encoding from ICU library in my Qt application. Here is > a code of my decoding function: > > QString result; > result.resize(maxSize); // maxSize is guaranteed to be >= size > const i

[Interest] Filling QString from raw UTF16 data

2012-08-11 Thread Konstantin Tokarev
Hi all, I'd like to use SCSU encoding from ICU library in my Qt application. Here is a code of my decoding function: QString result; result.resize(maxSize); // maxSize is guaranteed to be >= size const int size = ucnv_toUChars(m_converter, const_cast(result.utf16()), maxSize, a, inSi