Subject | RE: [Firebird-Architect] Re: [firebird-support] Writing UTF16 to the database |
---|---|
Author | Claudio Valderrama C. |
Post date | 2005-02-28T13:10:07Z |
Olivier Mascia wrote:
programming languages.
:-)
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?
C.
> String handling is handled using string classes.Where have I heard about classes recently? Hmm, maybe some hybrid
programming languages.
:-)
> Those classesHow do you allocate initial buffer for a string defined with length 20 in
> typically use dynamic memory allocation already. The only thing they
> can't assume is byte-length == characters-count.
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?
C.