fpc/tests/test/twide2.pp
2015-02-23 22:48:15 +00:00

30 lines
440 B
ObjectPascal

{$ifdef UNIX}
uses
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
{$endif UNIX}
var
i : longint;
w,w2 : widestring;
u,u2 : unicodestring;
a : ansistring;
begin
setlength(w,1000);
for i:=1 to 1000 do
w[i]:=widechar(i);
for i:=1 to 10 do
begin
a:=w;
w2:=a;
end;
setlength(u,1000);
for i:=1 to 1000 do
u[i]:=widechar(i);
for i:=1 to 10 do
begin
a:=u;
u2:=a;
end;
end.