On Wed, Oct 04, 2006 at 11:49:36AM +0200, Helge Hafting wrote:
> Abdelrazak Younes wrote:
> >ucs4_to_qstring is pretty simple:
> >
> >QString const ucs4_to_qstring(char_type const * str, size_t ls)
> >{
> >    QString s;
> >
> >    for (size_t i = 0; i < ls; ++i)
> >        s.append(ucs4_to_qchar(str[i]));
> >
> >    return s;
> >}
> A function call per character - ouch.

A heap allocation plus deallocation plus reference counting - ouchest
;-}

Andre'

Reply via email to