Decompile fn_02765 (Split)
Batch #11517 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_02765 Split: logic confirmed by peer review Peer-reviewed-by: KWDev, SapitoSucio, cremane, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
8790dfd9de
commit
95e9c3fab7
1 changed files with 3 additions and 5 deletions
|
|
@ -169,11 +169,9 @@ std::string FormatDecimal(double value, int precision, bool trimZeros) {
|
|||
// OFFSET: 0x0058B170
|
||||
// FUNCTION: fn_02765
|
||||
std::vector<std::string> Split(std::string_view text, std::string_view delimiter) {
|
||||
std::vector<std::string> result;
|
||||
for (auto part : text | std::views::split(delimiter)) {
|
||||
result.emplace_back(std::string_view(part.begin(), part.end()));
|
||||
}
|
||||
return result;
|
||||
auto parts = text | std::views::split(delimiter)
|
||||
| std::views::transform([](auto&& part) { return std::string_view(part.begin(), part.end()); });
|
||||
return std::vector<std::string>(parts.begin(), parts.end());
|
||||
}
|
||||
|
||||
// OFFSET: 0x0058B830
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue