C2Delphi Pro(C/C++ to Delphi/Pascal Pro)

The following screenshots are all actual conversions:

1.Inner Type

>

2.inline class within a function

>

3.auto-adding parentheses

>

4 c for to delphi/pascal for

>

5.c for(non i++) to delphi/pascal while

>

6.c for(non i++) to delphi/pascal while

>

7.auto char to byte

>

8.auto char to number

>

9 Ternary operation to function

>

10 Ternary operation to ifThen

>

11 anonymous function signature is passed as a parameter

>

12. Initialize array pointer

>

13. Initialize array

>

14. effectively convert while expressions

>

15. effectively convert if expressions

>

16 i-- in the expression

>

17. --i in the expression

>

18. i++ in the expression

>

19 normal i-- i++

>

20 super inheriited

>

21 super class inheriited

>

22 new to create

>

23 switch case default expression

>

24 case expression auto with begin end

>

25 retain the content of a pointer

>

26 type convert

>

27 Initialize record

>

28. pointers and accessing pointers

>

29 Initialize record array

>

28 c stack object to delphi/pascal heap object

>

29 new with params

>

31 inline variant

>

33 c delete memory to delphi/pascal free

>

34 return value

>

35 return

>

36 Assigning inside an if expression

>

37 c call param

>

38 Assigning add

>

39 1D array

>

34 nD complex array

>

41 1D array record

>

42 ignore release

>

43 ignore AddRef

>

44 C interface class to delphi/pascal Interface class

>

45 functions within inner classes

>

46 static constants within inner classes

>

Features:

  1. If function main exists, a program will be generated. Otherwise a pascal unit with interface/implementation sections.
  2. Merge header and implementation file to one dephi file
  3. Aggregate scattered implementation code across different c/c++ files.
  4. Converts routines and arguments
  5. Converts for loops(check use for or for-to-while, “count” as “to count -1” )
  6. Converts case statements(remove breaks,auto surround with begin…end)
  7. Smart Convers if-statement
  8. Smart Surround ‘and’ and ‘or’ with parentheses on both sides.
  9. Converts structs
  10. Converts enums
  11. Converts 1 and 2 dimensional arrays
  12. Converts many other common routines to Delphi equivalents (strcpy,strcat,strlen,printf,argv,argc,etc)
  13. Converts classes
  14. Nested class ,structs,enums
  15. Inline class ,structs,enums
  16. Inline method,
  17. Method as variable.
  18. C interface to Delphi interface
  19. C stack object to Delphi heap object with smart call constructor
  20. C pointer to Delphi var parameter
  21. Smart keep @ ^
  22. Smart C (Type) to Delphi Type()
  23. C String to Delphi String with delphi chars #10,#13,#0…
  24. Auto C Const to delphi Const or ar
  25. Nested Const Var initialization
  26. Custom regular conversion or fix
  27. Custom file name prefix and suffix