#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.Text("A B C A B C"); auto ruleA = t.Pattern("A"); auto ruleB = t.Pattern("B"); t.Find(); cout << "Total matches (all rules): " << t.Matches().Count() << endl; cout << "Matches for Rule A only: " << ruleA.Matches().Count() << endl; cout << "Matches for Rule B only: " << ruleB.Matches().Count() << endl; }