mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-31 18:44:04 +02:00
21 lines
393 B
ObjectPascal
21 lines
393 B
ObjectPascal
program comparetext;
|
|
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}
|
|
{$ifdef mswindows}{$apptype console}{$endif}
|
|
uses
|
|
sysutils
|
|
{$ifdef unix}
|
|
,{$ifdef darwin}iosxwstr{$else}cwstring{$endif}
|
|
{$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.
|