package chamo

  1. Overview
  2. Docs

Expansion of words in sourceviews.

type expand_context = {
  1. buffer : string;
  2. mutable pos : int;
  3. searched_rex : Pcre.regexp;
  4. searched_pattern : string;
  5. mutable prev_prop : string * int;
  6. mutable prev_inserted : string option;
  7. mutable already_proposed : string list;
}
val context : expand_context option ref
val create_context : string -> int -> string -> Pcre.regexp -> expand_context
val search_in_buffer : bool -> Sourceview.my_buffer -> start:int -> stop:int -> Pcre.regexp -> int * string
val get_next_proposition_in_buffer : expand_context -> string -> int * string
val get_next_buffer_in_history : string -> string option
val get_next_proposition : expand_context -> (bool * string) option
val get_pattern : Sourceview.sourceview -> int -> string * Pcre.regexp
val expand : Sourceview.sourceview -> string array -> unit
OCaml

Innovation. Community. Security.