MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / FixSCCEncodedWrapper

Function FixSCCEncodedWrapper

src/tests/string_func.cpp:331–336  ·  view source on GitHub ↗

Helper to call FixSCCEncoded and return the result in a new string. */

Source from the content-addressed store, hash-verified

329
330/* Helper to call FixSCCEncoded and return the result in a new string. */
331static std::string FixSCCEncodedWrapper(const std::string &str, bool fix_code)
332{
333 std::string result = str;
334 FixSCCEncoded(result, fix_code);
335 return result;
336}
337
338/* Helper to compose a string part from a unicode character */
339static void ComposePart(StringBuilder &builder, char32_t c)

Callers 1

string_func.cppFile · 0.85

Calls 1

FixSCCEncodedFunction · 0.85

Tested by

no test coverage detected