MCPcopy Create free account
hub / github.com/aardappel/treesheets / TextModeConvert

Function TextModeConvert

lobster/src/platform.cpp:292–297  ·  view source on GitHub ↗

We don't generally load in ways that allow stdio text mode conversions, so this function emulates them at best effort.

Source from the content-addressed store, hash-verified

290// We don't generally load in ways that allow stdio text mode conversions, so this function
291// emulates them at best effort.
292void TextModeConvert(string &s, bool binary) {
293 if (binary) return;
294 #ifdef _WIN32
295 s.erase(remove(s.begin(), s.end(), '\r'), s.end());
296 #endif
297}
298
299int64_t LoadFile(string_view relfilename, string *dest, int64_t start, int64_t len, bool binary) {
300 assert(cur_loader);

Callers 1

LoadFileFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected