-
ebz (01.05.11 19:46) [0]How to implement Pos function in Unicode (Widestring)
I've tried PosW from KOL.pas but didn't work -
There are Unicode pos functions in ShlwApi.pas (StrStrW, StrStrIW etc)
-
But there is a bug in Posw:
function posW( const S1, S2: AnsiString ): Integer;
Should be maybe:
function posW( const S1, S2: KOLString ): Integer;
Otherwise the code seems good and portable. -
ebz (04.05.11 09:36) [3]thank you thaddy, I'll try
-
ebz (04.05.11 10:46) [4]Oh I'm sorry, my coding was the culprit, just using Posworks..