Конференция "KOL" » Implement Pos in Unicode [Delphi, KOL]
 
  • 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
  • thaddy © (04.05.11 09:30) [1]
    There are Unicode pos functions in ShlwApi.pas (StrStrW, StrStrIW etc)
  • thaddy © (04.05.11 09:36) [2]
    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..
 
Конференция "KOL" » Implement Pos in Unicode [Delphi, KOL]
Есть новые Нет новых   [120350   +22][b:0][p:0.001]