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

using namespace std;
using namespace uCalcSoftware;

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

int main() {
   uCalc uc;
   uCalc::Transformer t;
   t.FromTo("a", "*a good*");

   // Case 1: A match occurs, text is modified.
   t.Text("This is a test");
   t.Transform();
   cout << "Modified: " << tf(t.WasModified()) << endl;

   // Case 2: No match occurs, text is unchanged.
   t.Text("This is another test");
   t.Transform();
   cout << "Modified: " << tf(t.WasModified()) << endl;
}