[转载]Delphi 7升级到XE2的字符串问题3——转换函数
{AnsiString与WideString互相转换函数}
function AnsiStringToWideString(Const
s:AnsiString):WideString;
function WideStringToAnsiString(Const
s:WideString):AnsiString;
{UTF8与WideString互相转换函数}
function UTF8StringToWideString(Const
s:UTF8String):WideString;
function WideStringToUTF8String(Const
s:WideString):UTF8String;
{UTF8与AnsiString互相转换函数}
function UTF8StringToAnsiString(Const
s:UTF8String):AnsiString;
function AnsiStringToUTF8String(Const s:AnsiString):UTF8String;
{AnsiString与WideString互相转换函数}
function AnsiStringToWideString(Const
s:AnsiString):WideString;
var
begin
end;
function WideStringToAnsiString(Const
s:WideString):AnsiString;
var
begin
end;
{UTF8与WideString互相转换函数}
function UTF8StringToWideString(Const
s:UTF8String):WideString;
var
begin
end;
function WideStringToUTF8String(Const
s:WideString):UTF8String;
var
begin
end;
{UTF8与AnsiString互相转换函数}
function UTF8StringToAnsiString(Const
s:UTF8String):AnsiString;
begin
end;
function AnsiStringToUTF8String(Const
s:AnsiString):UTF8String;
begin
end;