A simple two-pass transformation where the output of the first pass becomes the input for the second.

ID: 1105

See: Pass
				
					using uCalcSoftware;

var uc = new uCalc();
var t = new uCalc.Transformer();
t.Text = "A";

// Pass 0 will change 'A' to 'B'
var pass0 = t.Pass(0);
pass0.FromTo("A", "B");

// Pass 1 will receive 'B' and change it to 'C'
var pass1 = t.Pass(1);
pass1.FromTo("B", "C");

t.Transform();
Console.WriteLine(t); // The final output is 'C'
				
			
C
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::Transformer t;
   t.Text("A");

   // Pass 0 will change 'A' to 'B'
   auto pass0 = t.Pass(0);
   pass0.FromTo("A", "B");

   // Pass 1 will receive 'B' and change it to 'C'
   auto pass1 = t.Pass(1);
   pass1.FromTo("B", "C");

   t.Transform();
   cout << t << endl; // The final output is 'C'
}
				
			
C
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t As New uCalc.Transformer()
      t.Text = "A"
      
      '// Pass 0 will change 'A' to 'B'
      Dim pass0 = t.Pass(0)
      pass0.FromTo("A", "B")
      
      '// Pass 1 will receive 'B' and change it to 'C'
      Dim pass1 = t.Pass(1)
      pass1.FromTo("B", "C")
      
      t.Transform()
      Console.WriteLine(t) '// The final output is 'C'
   End Sub
End Module
				
			
C