| 79 | } |
| 80 | |
| 81 | Substitutions unpackSubstitutions(const QStringList& raw) |
| 82 | { |
| 83 | const auto count = raw.size(); |
| 84 | if (count < 3) |
| 85 | return {}; |
| 86 | |
| 87 | Substitutions result; |
| 88 | for (auto i = 0, end = raw.size(); i < end; i += 3) { |
| 89 | result.emplace(raw[i], Substitution{raw[i + 1], raw[i + 2]}); |
| 90 | } |
| 91 | return result; |
| 92 | } |
| 93 | |
| 94 | Substitutions loadLegacySubstitutions() |
| 95 | { |