rodecomp/Source/Utility/Text/TextEscapes.cpp
ragnarok-clanker 86cfb1018e Decompile fn_18244 (DecodeTextEscapes)
Batch #14017 by Yommy: 1 byte-identical, 0 confirmed by peer review.

- fn_18244 DecodeTextEscapes: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-07 04:28:18 +00:00

17 lines
586 B
C++

#include "Utility/Text/TextEscapes.h"
// OFFSET: 0x00AF41D0
// FUNCTION: fn_18244
void DecodeTextEscapes(std::string& text) {
for (std::size_t position = text.find("\\r"); position != std::string::npos; position = text.find("\\r")) {
text.replace(position, 2, "\r");
}
for (std::size_t position = text.find("\\n"); position != std::string::npos; position = text.find("\\n")) {
text.replace(position, 2, "\n");
}
for (std::size_t position = text.find("\\\""); position != std::string::npos; position = text.find("\\\"")) {
text.replace(position, 2, "\"");
}
}