#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); string UserText = "The cat saw another cat."; t.Text(UserText); // Define a rule and hold its handle auto catRule = t.FromTo("cat", "dog"); cout << "1. Rule Active (Default): "; cout << t.Transform() << endl; // Deactivate the rule catRule.Active(false); // Re-run the transform to see the change cout << "2. Rule Inactive: "; t.Text(UserText); cout << t.Transform() << endl; // Reactivate the rule catRule.Active(true); cout << "3. Rule Reactivated: "; cout << t.Transform() << endl; }