Skip to content

Commit e8e186f

Browse files
committed
std::string is closer by semantic to C# System.String than char*.
1 parent c8c6c31 commit e8e186f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ public class CSharpToCppTransformer : Transformer
132132
// void PrintNode(TElement node, StringBuilder sb, int level) override
133133
(new Regex(@"override ([a-zA-Z0-9 \*\+]+)(\([^\)\r\n]+?\))"), "$1$2 override", null, 0),
134134
// string
135-
// char*
136-
(new Regex(@"(\W)string(\W)"), "$1char*$2", null, 0),
135+
// std::string
136+
(new Regex(@"(\W)string(\W)"), "$1std::string$2", null, 0),
137137
// sbyte
138138
// std::int8_t
139139
(new Regex(@"(\W)sbyte(\W)"), "$1std::int8_t$2", null, 0),

0 commit comments

Comments
 (0)