#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; #define tf(IsTrue) ((IsTrue) ? "True" : "False") int main() { uCalc uc; auto t = uc.NewTransformer(); t.Str("

Title

Bold statement

Title B

Other text"); auto BoldTag = t.Pattern("{text}"); auto H3Tag = t.Pattern("

{text}

"); t.Find(); cout << t.Matches().Text() << endl; cout << "" << endl; BoldTag.Active(false); cout << "BoldTag.Active(): " << tf(BoldTag.Active()) << endl; cout << "-----------------------" << endl; t.Find(); cout << t.Matches().Text() << endl; cout << "" << endl; BoldTag.Active(true); cout << "BoldTag.Active(): " << tf(BoldTag.Active()) << endl; cout << "----------------------" << endl; t.Find(); cout << t.Matches().Text() << endl; cout << "" << endl; }