package ocp-indent

  1. Overview
  2. Docs
A simple tool to indent OCaml programs

Install

Dune Dependency

Authors

Maintainers

Sources

1.8.1.tar.gz
md5=70db6649a8c08a682ad63730c9752e31
sha512=565353de333dd44375366fff75e85a6256c3cd9ff52b3db79803141f975e77cda04dfe32f5e0f2d4c82c59be8f04e9c2bf4d066b113b2cdf267f4c3dcfa401da

doc/ocp-indent.utils/Pos/Region/index.html

Module Pos.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.