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

Function TextModeConvert

dev/src/platform.cpp:343–348  ·  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

341// We don't generally load in ways that allow stdio text mode conversions, so this function
342// emulates them at best effort.
343void TextModeConvert(string &s, bool binary) {
344 if (binary) return;
345 #ifdef _WIN32
346 s.erase(remove(s.begin(), s.end(), '\r'), s.end());
347 #endif
348}
349
350int64_t LoadFile(string_view relfilename, string *dest, int64_t start, int64_t len, bool binary) {
351 assert(cur_loader);

Callers 1

LoadFileFunction · 0.85

Calls 3

eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected