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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   t.Text("aaa bbb xyz 123");
   auto aaa = t.FromTo("aaa", "111");
   auto xyz = t.Pattern("xyz");
   t.Filter();
   cout << t.Matches().Text() << endl;

   cout << "-----" << endl;
   cout << aaa.Replacement() << endl;
   cout << xyz.Replacement() << endl;

}