module Tags: Biocaml_tags
exception Invalid of string
Raised when an invalid tag or incompatible list of tags is encounted.
type
t
Collection of tags, which classify a data format.
val of_string : string -> t
Parse given string as list of tags. Raise Invalid
if any tags
invalid, or if list of tags are incompatible.
val mem : string -> t -> bool
mem x t
returns true if t
contains a value for tag x
.
val find : string -> t -> string
find x t
returns the value of tag x
in t
. Raise
Not_found
if t
does not contain value for x
.
val tag_is : string -> string -> t -> bool
tag_is x y t
returns true if x
=y
in t
, or false if tag
x
assigned some other value or not found in t
.