/usr/lib/ocaml/ocp-indent-lib/pos.mli is in libocp-indent-lib-ocaml-dev 1.4.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | (**************************************************************************)
(* *)
(* Copyright 2011 Jun Furuse *)
(* Copyright 2012 OCamlPro *)
(* *)
(* All rights reserved.This file is distributed under the terms of the *)
(* GNU Lesser General Public License version 3.0 with linking *)
(* exception. *)
(* *)
(* TypeRex is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* Lesser GNU General Public License for more details. *)
(* *)
(**************************************************************************)
(** Lexer positions & regions *)
(** Lexer positions *)
module Position : sig
(** A position in a lexer stream *)
type t = Lexing.position
(** Pretty-print a position *)
val to_string: t -> string
(** Initial position *)
val zero: t
(** Get the coloumn offset associated to a lexing position *)
val column: t -> int
end
(** Lexer regions *)
module Region : sig
(** A region in a lexer stream *)
type t
(** Create a region from a starting and an ending position *)
val create: Position.t -> Position.t -> t
val fst: t -> Position.t
val snd: t -> Position.t
(** Return the column where the region starts *)
val start_column: t -> int
(** Return the column where the region ends *)
val end_column: t -> int
(** Get the region offset (number of characters from the beginning
of the file *)
val char_offset: t -> int
(** Get the lenght of a region *)
val length: t -> int
(** Return the line number where the region starts *)
val start_line: t -> int
(** Return the line number where the region ends *)
val end_line: t -> int
(** The empty region *)
val zero: t
(** [translate t x] shifts a region by [x] characters *)
val translate: t -> int -> t
end
|