format is an array of const, so in the first case it is assumed that tutf8string will be passed, and in the second case, tunicodestring is passed to the assembler procedure.
So, the second part is transforming forces and, of course, in order.
, ansistring " const" .
, wideformatbuf(), , cvtansistr cvtansistring, , unicodestring.
format() . , , -, .
, wideformatbuf . @WStrFromLStr cvtansistr (sysutils.pas: 10208 D2009).
: UTF-8 .
:
program Project2;
{$APPTYPE CONSOLE}
uses
SysUtils;
var u,u2 : string;
a :utf8string;
begin
a:='asrfdsfsd';
u:=format('%s',[a]); // breakpoint here
end.
, "debug dcu's" f7/f8/f9. !