src/grammar.cpp
string Grammar::replaceAll(const string & s, const string & re, const string & replacement)
{
    regex reg (re);
    return regex_replace(s, reg, replacement);
}
/**
  * Static helper function that replaces all occurrences of regex re in string s with the replacement string
  * \param [in] s string that is being modified
  * \param [in] re A string representing a C regex that will be matches against string s
  * \param [in] replacement A string that will replace the first match of re against string s
  * \return string The modified string with all occurrences of re replaced with replacement
  */
Static helper function that replaces all occurrences of regex re in string s with the replacement string
\param [in] s string that is being modified
\param [in] re A string representing a C regex that will be matches against string s
\param [in] replacement A string that will replace the first match of re against string s
\return string The modified string with all occurrences of re replaced with replacement
Static helper function that replaces all occurrences of regex re in string s with the replacement string \ param [ in ] s string that is being modified \ param [ in ] re A string representing a C regex that will be matches against string s \ param [ in ] replacement A string that will replace the first match of re against string s \ return string The modified string with all occurrences of re replaced with replacement
string Grammar::replaceAll(const string & s, const string & re, const string & replacement)
{
    regex reg (re);
    return regex_replace(s, reg, replacement);
}
string Grammar :: replaceAll ( const string & s , const string & re , const string & replacement ) { regex reg ( re ) ; return regex_replace ( s , reg , replacement ) ; }
Static helper function that replaces all occurrences of regex re in string s with the replacement string
 \param [in] s string that is being modified
 \param [in] re A string representing a C regex that will be matches against string s
 \param [in] replacement A string that will replace the first match of re against string s
 \return string The modified string with all occurrences of re replaced with replacement
Static helper function that replaces all occurrences of regex re in string s with the replacement string \ param [ in ] s string that is being modified \ param [ in ] re A string representing a C regex that will be matches against string s \ param [ in ] replacement A string that will replace the first match of re against string s \ return string The modified string with all occurrences of re replaced with replacement