Function saveSection

Function Documentation

void saveSection(const std::string str, const std::string &from, const std::string &to, std::string &savedSection)

function that saves a section of a string that is between two strings

Parameters:
  • str – string to be modified passed by reference

  • from – left string

  • to – right string

  • savedSection – string where to save the section that was found passed by reference