package oxbow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Oxbow_core.Window_patternSource

Sourcetype t = {
  1. title : string option;
  2. app_id : string option;
  3. identifier : string option;
  4. label : string option;
  5. case : Pattern.Case.t;
}
Sourceval equal : t -> t -> bool

equal a b is true when a and b hold equal criteria and an equal case rule.

Sourceval is_empty : t -> bool

is_empty p is true when p holds no criterion. Such a pattern matches every window.

Sourceval to_string : t -> string

to_string p renders p for display: the fields, then the case rule in parentheses when it is not the default.

Sourceval compile : t -> (title:string option -> app_id:string option -> identifier:string option -> labels:string list -> bool, string) result

compile p compiles p into a matcher. A window matches when every field of p matches; an absent field matches any value. Is Error msg when a regex is malformed.

Sourceval t_of_yojson : Yojson.Safe.t -> t
Sourceval yojson_of_t : t -> Yojson.Safe.t