#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; { uCalc::String s("Calculate (10 * 5) and ignore this."); s.Owned(); // Causes s to be released when it goes out of scope // Get the text from the opening parenthesis to the closing one. auto expression = s.BetweenInclusive("(", ")"); cout << expression << endl; } }