#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); // When a variable is used multiple times in a pattern, // such as {tag} in this case, the matching text must be the same t.FromTo("<{tag}> {words:2} {more} ", "tag={tag}, 2 words={words}, text={more}"); cout << t.Transform("
abc xyz more wordsbold
").Text() << endl; }