#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

#define tf(IsTrue) ((IsTrue) ? "True" : "False")

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   t.FromTo("a", "*a good*");

   t.Text("This is a test");
   cout << t.Transform() << endl;
   cout << "Modified: " << tf(t.WasModified()) << endl;
   cout << "" << endl;

   t.Text("This is another test");
   cout << t.Transform() << endl;
   cout << "Modified: " << tf(t.WasModified()) << endl;
}