#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   uCalc::String s = "This is just a test";
   cout << s.After("is") << endl;

   s = "/* if else */ if (x > 100) y = x * 2; else if(x == 5) y = x - 1;";
   cout << s.After("if ({cond})") << endl;
   cout << s.After("if ({cond})").After("if ({cond})") << endl;
   cout << s.After("if ({cond})", 2) << endl; // Finds text after 2nd match (same as above)
   cout << s.After("NonExistingPattern") << endl; // Nothing to display on this line
   cout << "----" << endl;

}