ZRCola::mapping is generic now

This commit is contained in:
Simon Rozman
2016-04-20 12:24:23 +02:00
parent 5e4331903b
commit a021dd31f7
4 changed files with 46 additions and 31 deletions

View File

@@ -91,7 +91,7 @@ void ZRCola::translation_db::Compose(_In_z_count_(inputMax) const wchar_t* input
i += trans.str_len;
if (trans.str_len > 1 && map) {
// Mapping changed.
map->push_back(ZRCola::mapping(output.length(), i));
map->push_back(ZRCola::mapping(i, output.length()));
}
} else {
// The match was not found.