MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / correctMixedLineEnds

Method correctMixedLineEnds

astyle/src/astyle_main.cpp:376–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void ASConsole::correctMixedLineEnds(ostringstream &out)
377{
378 LineEndFormat lineEndFormat = LINEEND_DEFAULT;
379 if (strcmp(outputEOL, "\r\n") == 0)
380 lineEndFormat = LINEEND_WINDOWS;
381 if (strcmp(outputEOL, "\n") == 0)
382 lineEndFormat = LINEEND_LINUX;
383 if (strcmp(outputEOL, "\r") == 0)
384 lineEndFormat = LINEEND_MACOLD;
385 convertLineEnds(out, lineEndFormat);
386}
387
388// check files for 16 or 32 bit encoding
389// the file must have a Byte Order Mark (BOM)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected