Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

get-break-type

Pascal function to detect the type of line break in a file.

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Get Break Type

Pascal function to detect the type of line break in a file. It will return a "TBreakType", which can be:

  • btBinary: Probably a binary file
  • btWindows: CR/LF detected
  • btMacintosh: CR detected
  • btUnix: LF detected
  • btUnknown: Unknown line break given the MaxDataToRead limit