mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 21:06:11 +02:00
* small optimization
git-svn-id: branches/jvmbackend@18700 -
This commit is contained in:
parent
249b56d742
commit
5a1bca3b75
@ -64,7 +64,7 @@ begin
|
|||||||
result:='';
|
result:='';
|
||||||
Size:=Length(S2);
|
Size:=Length(S2);
|
||||||
if Size>0 then
|
if Size>0 then
|
||||||
result:=unicodestring(JLString.Create(TJByteArray(ShortstringClass(@S2).fdata),0,length(S2)));
|
result:=unicodestring(JLString.Create(TJByteArray(ShortstringClass(@S2).fdata),0,Size));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function fpc_UnicodeStr_To_AnsiStr (const S2 : UnicodeString): AnsiString; compilerproc;
|
Function fpc_UnicodeStr_To_AnsiStr (const S2 : UnicodeString): AnsiString; compilerproc;
|
||||||
|
Loading…
Reference in New Issue
Block a user