fpc/tests/webtbs/tw17591.pp
Jonas Maebe c4488f6b3a * hook up CompareUnicodeStringProc and CompareTextUnicodeStringProc in
cwstring (fixes webtbs/tw17591.pp on unix platforms)
  * enhanced webtbs/tw17591.pp so it also (superficially) checks the
    correctness of the called routines, and add cwstring for unix platforms

git-svn-id: trunk@16298 -
2010-11-03 12:16:20 +00:00

21 lines
355 B
ObjectPascal

program comparetext;
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}
{$ifdef mswindows}{$apptype console}{$endif}
uses
sysutils
{$ifdef unix}
,cwstring
{$endif}
;
var
int1: integer;
ustr1,ustr2: unicodestring;
begin
ustr1:= 'A';
ustr2:= 'a';
if unicodecomparestr(ustr1,ustr2)=0 then
halt(1);
if unicodecomparetext(ustr1,ustr2)<>0 then
halt(2);
end.