Subject | Re: [Firebird-Architect] Re: [firebird-support] Writing UTF16 to the database |
---|---|
Author | Lester Caine |
Post date | 2005-02-28T15:58:18Z |
Jim Starkey wrote:
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
> Claudio Valderrama C. wrote:So would a UTF8 string be allocated 20 bytes, 60 or more :)
>
>>Olivier Mascia wrote:
>>
>>>String handling is handled using string classes.
>>
>>How do you allocate initial buffer for a string defined with length 20 in
>>charactes that's going to be filled? Do you take an educated guess or do you
>>take the worst case or do you go playing alloc-more-copy-and-dealloc-old
>>until you have enough buffer while characters are written in the buffer?
>
> String classes work on physical length.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services