My aggregated monorepo of OCaml code, automaintained
at main 29 lines 525 B view raw
1type t 2 3include Jv.CONV with type t := t 4 5module Line : sig 6 type t 7 (** A text line *) 8 9 val from : t -> int 10 (** Position of the start of the line *) 11 12 val to_ : t -> int 13 (** Position at the end of the line before the line break *) 14 15 val number : t -> int 16 (** Line's number (1-based) *) 17 18 val text : t -> Jstr.t 19 (** Line's text *) 20 21 val length : t -> int 22 (** The length of the line *) 23end 24 25val length : t -> int 26(** Length of the text *) 27 28val line : int -> t -> Line.t 29val to_jstr_array : t -> Jstr.t array