[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: QString or QCString for file names?
From:       Woohyun JANG <louis () mizi ! co ! kr>
Date:       1999-06-24 10:20:36
[Download RAW message or body]

On Thu, Jun 24, 1999 at 06:50:47AM +0000, Pietro Iglio wrote:
: BTW: it is my understanding (I'm wrong?) that QString allocates the 
: unicode string (2 bytes for each char) + the ascii string if a method 
: like QString::latin1() is invoked.
: This means that a C string of 10 characters can take 10 * 2 + 10 + 
: sizeof(QString) bytes.
: This is why I'm trying to remove QString if it is not needed.

I think it's true... but

The more you use QCString to save memory, the harder non-Latin users
can see their letters in your program. 

And maybe they'll try to modify your code into use QString. :)

Regards,
-- 
Woohyun JANG, louis@mizi.co.kr                           MIZI Research, Inc.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic