package ocp-indent

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.6.1.tar.gz
sha256=f314fa1d6f1ece652a291b552f1f49ec6439c9c3f5e7819e16de5c08d4588fe2
md5=935d03f4f6376d687c46f350ff5eecdd

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

Module Pos.Region

Lexer regions

type t

A region in a lexer stream

val create : Position.t -> Position.t -> t

Create a region from a starting and an ending position

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

Return the column where the region starts

val end_column : t -> int

Return the column where the region ends

val char_offset : t -> int

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

val length : t -> int

Get the lenght of a region

val start_line : t -> int

Return the line number where the region starts

val end_line : t -> int

Return the line number where the region ends

val zero : t

The empty region

val translate : t -> int -> t

translate t x shifts a region by x characters

OCaml

Innovation. Community. Security.