https://github.com/linksplatform/csharptocpptranslator
A specific translator for LinksPlatform's libraries.
https://github.com/linksplatform/csharptocpptranslator
Last synced: 5 months ago
JSON representation
A specific translator for LinksPlatform's libraries.
- Host: GitHub
- URL: https://github.com/linksplatform/csharptocpptranslator
- Owner: linksplatform
- License: unlicense
- Created: 2019-11-25T16:43:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T18:37:00.000Z (about 2 years ago)
- Last Synced: 2025-01-07T09:35:16.480Z (6 months ago)
- Language: C#
- Size: 180 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/linksplatform/csharptocpptranslator/actions?workflow=CI)
[](https://www.codacy.com/manual/drakonard/CSharpToCppTranslator?utm_source=github.com&utm_medium=referral&utm_content=linksplatform/CSharpToCppTranslator&utm_campaign=Badge_Grade)
[](https://www.codefactor.io/repository/github/linksplatform/csharptocpptranslator)# CSharpToCppTranslator
A specific translator for LinksPlatform's libraries.## Example
`translate.sh` script is useful when Translator fails to translate the whole directory in one go.Translate `.cs` to `.h`:
```sh
export BASE_PATH=/home/konard/Archive/Code/Links/Numbers/csharp/Platform.Numbers; find "$BASE_PATH" -type f | grep -v .csproj | sed -e 's/\.cs$//' | xargs -n1 ./translate.sh "h" "s|csharp|cpp|"
```Translate `.cs` to `.cpp`:
```sh
export BASE_PATH=/home/konard/Archive/Code/Links/Numbers/csharp/Platform.Numbers.Tests; find "$BASE_PATH" -type f | grep -v .csproj | sed -e 's/\.cs$//' | xargs -n1 ./translate.sh "cpp" "s|csharp|cpp|"
```
or
```sh
export BASE_PATH=/home/konard/Archive/Code/Links/Numbers/csharp/Platform.Numbers.Benchmarks; find "$BASE_PATH" -type f | grep -v .csproj | sed -e 's/\.cs$//' | xargs -n1 ./translate.sh "cpp" "s|csharp|cpp|"
```