TransformArg directive
ID: 214
using uCalcSoftware;
var uc = new uCalc();
var t = uc.NewTransformer();
t.FromTo("abc", "changed to xyz");
t.FromTo("Quote1({arg})", "'{arg}'");
t.FromTo("Quote2({arg%})", "'{arg}'");
Console.WriteLine(t.Transform("Quote1(abc), Quote2(abc)"));
'abc', 'changed to xyz' using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.FromTo("abc", "changed to xyz"); t.FromTo("Quote1({arg})", "'{arg}'"); t.FromTo("Quote2({arg%})", "'{arg}'"); Console.WriteLine(t.Transform("Quote1(abc), Quote2(abc)"));
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
auto t = uc.NewTransformer();
t.FromTo("abc", "changed to xyz");
t.FromTo("Quote1({arg})", "'{arg}'");
t.FromTo("Quote2({arg%})", "'{arg}'");
cout << t.Transform("Quote1(abc), Quote2(abc)") << endl;
}
'abc', 'changed to xyz' #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.FromTo("abc", "changed to xyz"); t.FromTo("Quote1({arg})", "'{arg}'"); t.FromTo("Quote2({arg%})", "'{arg}'"); cout << t.Transform("Quote1(abc), Quote2(abc)") << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t = uc.NewTransformer()
t.FromTo("abc", "changed to xyz")
t.FromTo("Quote1({arg})", "'{arg}'")
t.FromTo("Quote2({arg%})", "'{arg}'")
Console.WriteLine(t.Transform("Quote1(abc), Quote2(abc)"))
End Sub
End Module
'abc', 'changed to xyz' Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() t.FromTo("abc", "changed to xyz") t.FromTo("Quote1({arg})", "'{arg}'") t.FromTo("Quote2({arg%})", "'{arg}'") Console.WriteLine(t.Transform("Quote1(abc), Quote2(abc)")) End Sub End Module