#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; { uCalc::String s("A B C"); s.Owned(); // Causes s to be released when it goes out of scope // Case 1: Pattern is at the end. Should return an empty string. cout << "After 'C': '"; cout << s.After("C"); cout << "'" << endl; // Case 2: Pattern does not exist. Should return an empty string. cout << "After 'D': '"; cout << s.After("D"); cout << "'" << endl; // Case 3: Get text after the first word. cout << "After 'A': '"; cout << s.After("A"); cout << "'" << endl; } }