package ocp-indent-nlfork

  1. Overview
  2. Docs
ocp-indent library, "newline tokens" fork

Install

dune-project
 Dependency

Authors

Maintainers

Sources

nlfork-1.5.4.tar.gz
md5=e9d1a7de64e169536ddf16023b111409
sha512=4637eb4ac2a47001f7b236ad7fdcbf7fe1a659e947a46aacd7ff2f2e386c82c423468aabd6adcabed8caf869d4a8f3f592ea1134b4ba77b7d37080e01cc497dc

doc/ocp-indent-nlfork.utils/Nstream/Region/index.html

Module Nstream.RegionSource

Lexer regions

Sourcetype t

A region in a lexer stream

Sourceval create : Position.t -> Position.t -> t

Create a region from a starting and an ending position

Sourceval fst : t -> Position.t
Sourceval snd : t -> Position.t
Sourceval start_column : t -> int

Return the column where the region starts

Sourceval end_column : t -> int

Return the column where the region ends

Sourceval char_offset : t -> int

Get the region offset (number of characters from the beginning of the file

Sourceval length : t -> int

Get the lenght of a region

Sourceval start_line : t -> int

Return the line number where the region starts

Sourceval end_line : t -> int

Return the line number where the region ends

Sourceval zero : t

The empty region

Sourceval translate : t -> int -> t

translate t x shifts a region by x characters

OCaml

Innovation. Community. Security.