I am using Delphi XE3. I just wonder if Delphi string functions, like Windows SDK, have two versions, one for AnsiString and one for UnicodeString?
For example, SetString procedure:
procedure SetString(var S: String; Buffer: PChar; Length: Integer);
Does it have two versions, one is:
procedure SetString(var S: AnsiString; Buffer: PAnsiChar; Length: Integer);
and another version is:
procedure SetString(var S: UnicodeString; Buffer: PUnicodeChar; Length: Integer);
I have searched in Delphi source code, but only found the following function in system.pas:
procedure _SetString(s: _PShortStr; buffer: _PAnsiChr; len: Byte);
It seems that System.pas only define the Ansi string version?