#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.Text("ID:100, Name:Admin, ID:200"); // Mark 'ID' rules as focusable, but 'Name' rules as secondary. auto idRule = t.Pattern("ID:{@Number}").SetFocusable(true); auto nameRule = t.Pattern("Name:{@Alpha}").SetFocusable(false); t.Find(); // Get the matches for the 'idRule' specifically, filtered to only focusable results. auto focusableIdMatches = idRule.GetMatches(MatchesOption::FocusableOnly); cout << "Focusable 'ID' matches found: " << focusableIdMatches.Count() << endl; cout << focusableIdMatches.Text() << endl; }