Sign in Join

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

Catalog · How the catalog works

Random project

get-break-type

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

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

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