#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer().SetText("The quick brown fox jumps over."); t.Pattern("fox"); t.Find(); auto matches = t.Matches(); cout << "Original Start Position: " << matches[0].StartPosition() << endl; // Add an offset of 100 to all match positions matches.ApplyOffset(100); cout << "New Start Position: " << matches[0].StartPosition() << endl; }