|
Special RTL/VCL-functions |
Top Previous Next |
|
What is translated > Special RTL/VCL-functions Some functions of the Delphi RTL/VCL either do not exist in the C++Builder counterpart or have become to member functions of the String classes. The conversion of calls of the latter kind of functions into calls of the corresponding member functions is done automatically by Delphi2C#. For Delphi I/O routines there is a ready translated C# file. In addition the calls of some compile time functions and some other special functions is done automatically. See the following examples:
var i, j : Integer; int i = 0; p1 : Pointer; int j = 0; s1, s2 : String; Pointer p1 = default; iset : set Of int; string s1 = string.Empty; obj : TObject; string s2 = string.Empty; e :TEnum; TSet iset = new TSet(); TObject obj = default; TEnum e; begin
Assigned( obj ); Assigned(obj); Copy(s1, i, j); s1.Substring(i-1, MaxSubstringLength(s1, i-1, j)); Dec(i); --i; Dec(i, j); i -= j; Dec(e1); --e1; Delete(s1, i, j); Delete(ref s1, i-1, j); Dispose(p1); p1 = null; Exclude(iset, i); iset = iset >> i; FreeAndNil(p1); FreeAndNil(ref p1); High(TEnum); High(TEnum); High(strarray); High(strarray); High(type); High(type); Inc(i); ++i; Inc(i, j); i += j; Inc(e1); ++e1; Include(iset, i); iset = iset << i; Insert(s1, s2, i); Insert(s1, ref s2, i-1); Length(s1); s1.Length; Length(strarray); Length(strarray); Low(TEnum); Low(TEnum); Low(strarray); Low(strarray); Low(type); Low(type); New(obj); obj = new TObject; PAnsiChar(s1); new PAnsiChar(s1); Pos(s1, s2); s2.IndexOf(s1) + 1; SetLength(s1, i); SetLength(ref s1, i); Str(d:8:2, S); Str(d, 8, 2, ref S);
|
|
This page belongs to the Delphi2C# Documentation |
Delphi2C# home Content |