| 374 | } |
| 375 | |
| 376 | void 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) |
nothing calls this directly
no outgoing calls
no test coverage detected