You are not logged in.
Hi,
It seems to be working well, but I'm still not 100% sure about it - is it safe to use implicit RawUTF8 <-> string conversion in unicode Delphi (version after 2009)?
I mean:
- directly pass values of type 'String/UnicodeString' to mORMot functions that expect type 'RawUTF8', eg:
var
mystr: string;
begin
myDb.ExecuteList([], myStr);
end;
- Directly assigning RawUTF8 to String, eg:
var
myUtf8: RawUTF8;
begin
TEdit.Text := myUtf8;
end;
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
@mpv, thanks for your comments. I'm curious, the implicit conversion is slow when compared to using functions in SynCommons, because of the internal RTL functions used to perform the implicit conversion is not optimized, right?
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
It's better explained in @ABs perfect blog article How to write fast multi-thread Delphi applications..
Offline