[fpc-devel] Unicode conversion routines

2008-11-22 Thread Graeme Geldenhuys
Hi, Has anybody written these conversions functions yet? If not, I am about to port the ConvertUTF.c file from Unicode.org to Object Pascal. UTF-32 to UTF-16 UTF-32 to UTF-8 UTF-16 to UTF-32 UTF-16 to UTF-8 UTF-8 to UTF-16 UTF-8 to UTF-32

Re: [fpc-devel] Unicode conversion routines

2008-11-22 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: Hi, Has anybody written these conversions functions yet? If not, I am about to port the ConvertUTF.c file from Unicode.org to Object Pascal. UTF-32 to UTF-16 UTF-32 to UTF-8 UTF-16 to UTF-32 UTF-16 to UTF-8 UTF-8 to UTF-16

Re: [fpc-devel] Unicode conversion routines

2008-11-22 Thread Graeme Geldenhuys
On Sat, Nov 22, 2008 at 10:51 AM, Florian Klaempfl [EMAIL PROTECTED] wrote: function UTF8Decode(const s : UTF8String): UnicodeString; Is there some hard-coded limit on UTF8Decode? I am writing some unit tests for these methods and on my 3rd test, it already fails. I'm using testing sample data

Re: [fpc-devel] Unicode conversion routines

2008-11-22 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: On Sat, Nov 22, 2008 at 10:51 AM, Florian Klaempfl [EMAIL PROTECTED] wrote: function UTF8Decode(const s : UTF8String): UnicodeString; Is there some hard-coded limit on UTF8Decode? I am writing some unit tests for these methods and on my 3rd test, it already

[fpc-devel] Memory consumed by strings

2008-11-22 Thread listmember
Is there a way to determine how much memory is consumed by strings by a running application? I'd like to know this, in particular, for FPC ana Lazarus --to begin with. And, the reason I'd like to know this is this: Whenever I suggest that char size be increased to 4, the idea gets opposed on