#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().SetText("Test1 'a b c' a b c Test2 'a b c' a b c");

   auto Test1 = t.FromTo("Test1 {txt} b", "[{txt}]"); // defaults to QuoteSensitive = true
   auto Test2 = t.FromTo("Test2 {txt} b", "({txt})").SetQuoteSensitive(false);
   t.Transform();

   cout << "Test1 QuoteSensitive = " << tf(Test1.QuoteSensitive()) << endl;
   cout << "Test2 QuoteSensitive = " << tf(Test2.QuoteSensitive()) << endl;

   cout << t << endl;
}