Who wants to convert Delphi code should not start from the scratch with TextTransformer but take the ready Delphi converters.

 

 

 


 

 


Delphi2Cpp

DelphiXE2Cpp11




Delphi version

Delphi 7

RAD Studio 10.2.2 Tokyo

C++ version

C++ 98

C++98, C++11, C++14, C++17 (see 1)

target system

32 bit

32 bit, 64 bit (see 2)

System code

basic C++ code for System.pas and Delphi Intrinsic Routines

basic C++ code for System.pas and Delphi Intrinsic Routines

RTL

SysUtils translated from free pascal

most original Delphi RTL code has been translated and post-processed (see 3)

char type

supports Unicode and old style AnsiChar based programs

only supports Unidode based programs

with statements

via explicitly typed helper variables

by use of auto.type or via explicitly typed helper variables for C++98

nested functions

lookup of needed variables (sometimes results in long lists)

via lambda exressions (see 5)

array initialization

explicitly for all elements

via std::initializer_list (see 5)

returned C-style array

partially managed via global variables

manged via array references

properties

à la C++Builder or via getter and setter methods

à laC++Builder or via getter and setter methods, VC properties are supported too

event handling simulation

with code from Tamas Demjen (see 4)

with std::function

"finally" simulation

no

simulated via lambda expression

for-in loops

no

range based for-loops

operator precedence

partially corrected

accurately converted

overload resolution

no

an algorithm to find the best fitting overload is used

ambiguity resolution

no

ambiguities are resolved automatically when they arise from equal symbol names at the C++ lookup

unicode source files

no

yes

unit scope names

no

yes

operator overloading

no

yes

class helpers

no

yes

class-like records

no

yes

nested classes

no

yes

anonymous methods

no

yes

generics

no

yes

class reference types

experimentally simulated

partially simulation

COM support and variant type

no

no

inline variable declarations

no

no

IDE

yes

yes

executable via command line

yes

yes

translation manager

yes

yes

user defined type-map

no

yes

refactoring tool

no

yes

reqired post-processing

yes

yes, but less than for the old Delphi2Cpp

online documentation

https://www.texttransformer.com/d2chelp/index.html

 

https://www.texttransformer.com/dxe2c11help/index.html

 

updates

not possible any more

unlimited

sale

online, prize1500,- €

custom tailored on demand only

 

 

 

 

 

1. C++98 tested with C++Builder, C++11-17 tested with C++Builder and Visual C++

2. Windows tested, mac os partially tested with special string class, available on demand

3. for legal reasons delivered only for proofed Delphi owners. some parts of the RTL cannot be translated, but SysUtils is nearly complete

4. formerly available at: http://tweakbits.com/articles/events/index.html

5. for C++98 code an additional manual post-processing of newer features is inevitable