#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; t.Description("My Main Transformer"); t.Text("apple banana apple"); auto appleRule = t.FromTo("apple", "APPLE"); auto bananaRule = t.FromTo("banana", "BANANA"); t.Find(); for(auto match : t.Matches()) { auto rule = match.Rule(); auto parent = rule.ParentTransformer(); cout << "Match '" << match.Text() << "' found by rule '" << rule.Name() << "' in transformer '" << parent.Description() << "'" << endl; } }