Anonymous
public cpp v1 · immutablestring repl, key, get, temp;temp = result;std::transform(temp.begin(), temp.end(), temp.begin(), to_lower());loc = temp.find( key, 0 );while (loc != string::npos) { result.replace( loc, key.length(), repl ); loc = result.find( key, 0 );}replace.erase(replace.begin());