Implicit Str(), Transform()
ID: 156
using uCalcSoftware;
var uc = new uCalc();
var t = uc.NewTransformer();
t.FromTo("a", "XY");
t.Text = "a b c a b c";
Console.WriteLine(t.Transform().Text); // Text that was set before trasnform
Console.WriteLine(t.Transform("c b a c b a").Text); // text passed to Transform()
Console.WriteLine(t.Transform("a, b, a, b")); // Implicit; Text property can be omitted
XY b c XY b c
c b XY c b XY
XY, b, XY, b using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.FromTo("a", "XY"); t.Text = "a b c a b c"; Console.WriteLine(t.Transform().Text); // Text that was set before trasnform Console.WriteLine(t.Transform("c b a c b a").Text); // text passed to Transform() Console.WriteLine(t.Transform("a, b, a, b")); // Implicit; Text property can be omitted
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
auto t = uc.NewTransformer();
t.FromTo("a", "XY");
t.Text("a b c a b c");
cout << t.Transform().Text() << endl; // Text that was set before trasnform
cout << t.Transform("c b a c b a").Text() << endl; // text passed to Transform()
cout << t.Transform("a, b, a, b") << endl; // Implicit; Text property can be omitted
}
XY b c XY b c
c b XY c b XY
XY, b, XY, b #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.FromTo("a", "XY"); t.Text("a b c a b c"); cout << t.Transform().Text() << endl; // Text that was set before trasnform cout << t.Transform("c b a c b a").Text() << endl; // text passed to Transform() cout << t.Transform("a, b, a, b") << endl; // Implicit; Text property can be omitted }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t = uc.NewTransformer()
t.FromTo("a", "XY")
t.Text = "a b c a b c"
Console.WriteLine(t.Transform().Text) '// Text that was set before trasnform
Console.WriteLine(t.Transform("c b a c b a").Text) '// text passed to Transform()
Console.WriteLine(t.Transform("a, b, a, b")) '// Implicit; Text property can be omitted
End Sub
End Module
XY b c XY b c
c b XY c b XY
XY, b, XY, b Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() t.FromTo("a", "XY") t.Text = "a b c a b c" Console.WriteLine(t.Transform().Text) '// Text that was set before trasnform Console.WriteLine(t.Transform("c b a c b a").Text) '// text passed to Transform() Console.WriteLine(t.Transform("a, b, a, b")) '// Implicit; Text property can be omitted End Sub End Module