20 lines
291 B
C++
20 lines
291 B
C++
#include "etl.h"
|
|
|
|
#include <cctype>
|
|
|
|
namespace etl {
|
|
|
|
using namespace std;
|
|
|
|
new_score_t transform(const old_score_t &input)
|
|
{
|
|
new_score_t result;
|
|
|
|
for (auto const &pair : input)
|
|
for (auto c : pair.second)
|
|
result[tolower(c)] = pair.first;
|
|
|
|
return result;
|
|
}
|
|
|
|
}
|