MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ReplaceNewLineSymbols

Function ReplaceNewLineSymbols

TombEngine/Specific/trutils.cpp:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 std::string ReplaceNewLineSymbols(const std::string& string)
127 {
128 auto result = string;
129 std::string::size_type index = 0;
130
131 while ((index = result.find("\\n", index)) != std::string::npos)
132 {
133 result.replace(index, 2, "\n");
134 ++index;
135 }
136
137 return result;
138 }
139
140 std::vector<std::wstring> SplitString(const std::wstring& string)
141 {

Callers 1

LoadSubtitlesFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected