8 #include "Pythia8/PythiaStdlib.h"
17 string toLower(
const string& name,
bool trim) {
22 if (name.find_first_not_of(
" \n\t\v\b\r\f\a") == string::npos)
return "";
23 int firstChar = name.find_first_not_of(
" \n\t\v\b\r\f\a");
24 int lastChar = name.find_last_not_of(
" \n\t\v\b\r\f\a");
25 temp = name.substr( firstChar, lastChar + 1 - firstChar);
29 for (
int i = 0; i < int(temp.length()); ++i) temp[i] = tolower(temp[i]);