Decompile fn_03421 (?DecodeField@?A0x01dc4413@@YAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@3@_N@Z)

Batch #13596 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_03421 ?DecodeField@?A0x01dc4413@@YAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@3@_N@Z: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-06 20:33:10 +00:00
commit e111847a4a

View file

@ -4741,17 +4741,15 @@ namespace {
decoded = decoded.substr(0, decoded.size() - 1);
}
std::size_t pos = 0;
const std::string pattern = "\\\"\"";
const std::string replacement = "\"";
for (std::size_t pos = 0; (pos = decoded.find(pattern, pos)) != std::string::npos; pos += replacement.size()) {
for (; (pos = decoded.find(pattern, pos)) != std::string::npos; pos += replacement.size()) {
decoded.replace(pos, pattern.size(), replacement);
}
}
{
std::string converted = FromUtf8(decoded, g_textCodePage);
decoded.assign(converted);
}
decoded = static_cast<const std::string&>(FromUtf8(decoded, g_textCodePage));
row.push_back(decoded);
}