sig
  type pattern
  val pattern : ?transl:string -> string -> Agrep.pattern
  exception Syntax_error of int
  val pattern_string : ?transl:string -> string -> Agrep.pattern
  val string_match :
    Agrep.pattern -> ?numerrs:int -> ?wholeword:bool -> string -> bool
  val substring_match :
    Agrep.pattern ->
    ?numerrs:int -> ?wholeword:bool -> string -> pos:int -> len:int -> bool
  val errors_substring_match :
    Agrep.pattern ->
    ?numerrs:int -> ?wholeword:bool -> string -> pos:int -> len:int -> int
  module Iso8859_15 :
    sig
      val case_insensitive : string
      val accent_insensitive : string
      val case_and_accent_insensitive : string
    end
end