#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); auto ruleA = t.FromTo("apple", "fruit"); t.Text("an apple a day"); t.Find(); auto firstMatch = t.Matches()[0]; auto generatingRule = firstMatch.Rule(); cout << "Match text: '" << firstMatch.Text() << "' was found by rule: '" << generatingRule.Name() << "'"; }