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

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();
   t.Text("The quick brown fox");
   t.Pattern("brown");
   t.Find();

   // Get the collection of matches
   auto matches = t.Matches();

   // Check if any matches were found
   // Get the first match object and retrieve its text
   auto firstMatch = matches[0];
   cout << "Found match: '" << firstMatch.Text() << "'" << endl;

}