Unicode support in madStrings

delphi package - madRes, madTools, madStrings, ...
Post Reply
Posts: 166
Joined: Sun Jul 16, 2006 9:01 pm
Location: UK

Unicode support in madStrings

Post by mikec »

Hay madshi,

Are there any plans to update the madStrings library to fully support Unicode in BDS 2009?

I've had a quick look through most of the .pas file and the vast majority of functions support the new UnicodeString but the IntToStrEx() functions are defaulting to AnsiString. I only noticed because Delphi 2009 was chucking a warning when i compiled some code using this function.

Many thanks,

Mike C
Site Admin
Posts: 10528
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Hi Mike,

I've updated all string functions where Unicode support would make a difference. IntToStrEx cannot possible produce unicode characters, so I left it at ansi. You can simply typecast it to unicode to make the warnings go away...
Post Reply