package camomile

  1. Overview
  2. Docs
A Unicode library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.0.0.tar.gz
md5=41e02d124c3fa29ea511110d2c6532de
sha512=b0ae3d921f65390e8ec88a04901dd097b568db9f9ae70fb328e9d3ddb2dd8922b9a8e8da9ace91ad9cb5f6a1310ae5b6ba502e287d6c828f4d60622289316ac8

doc/camomile.lib/CamomileLib/ULine/index.html

Module CamomileLib.ULine

Line IO

type separator = [
  1. | `CR
  2. | `LF
  3. | `CRLF
  4. | `NEL
  5. | `LS
  6. | `PS
]

Line separators.

  • `CR specifies carriage return.
  • `LF specifies linefeed.
  • `CRLF specifies the sequence of carriage return and linefeed.
  • `NEL specifies next line (\u0085).
  • `LS specifies Unicode line separator (\u2028).
  • `PS specifies Unicode paragraph separator (\u2029).

new input separator input_obj creates the new input channel object OOChannel.obj_input_channel which reads from input_obj and converts line separators (all of CR, LF, CRLF, NEL, LS, PS) to separator.

new output separator output_obj creates the new output channel object OOChannel.obj_output_channel which receives Unicode characters and converts line separators (all of CR, LF, CRLF, NEL, LS, PS) to separator.

module type Type = sig ... end
module Make (Text : UnicodeString.Type) : Type with type text = Text.t
OCaml

Innovation. Community. Security.