mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 18:08:05 +02:00

prefer widestring->unicodestring and vice versa conversions than widestring->ansistring git-svn-id: trunk@19090 -
27 lines
408 B
ObjectPascal
27 lines
408 B
ObjectPascal
procedure pw(const S : RawByteString); overload;
|
|
begin
|
|
WriteLn('fail');
|
|
end;
|
|
|
|
procedure pw(const S : WideString); overload;
|
|
begin
|
|
WriteLn('ok');
|
|
end;
|
|
|
|
procedure pu(const S : RawByteString); overload;
|
|
begin
|
|
WriteLn('fail');
|
|
end;
|
|
|
|
procedure pu(const S : UnicodeString); overload;
|
|
begin
|
|
WriteLn('ok');
|
|
end;
|
|
|
|
var
|
|
u : UnicodeString;
|
|
w : WideString;
|
|
begin
|
|
pw(u);
|
|
pu(w);
|
|
end. |