Previous Up Next

2.2  Module Analyze signature

Parsing of a netscape (or mozilla or gnobog) bookmark file.


type header = {hd_contenu : string;
               hd_description : string;
               hd_add : float}
type href = {href_url : string;
             href_contenu : string;
             href_description : string;
             href_icon : string;
             href_add : float}
type liste = {l_header : header; l_refs : ligne list}
and ligne = Href of href | Liste of liste | Separator | Filtered_out
type htmldoc = {meta: string list; titre : string; bmk : ligne list; footer : string}

val analyze : string -> htmldoc



The filter function removes the folders whose titles match one of a given keyword set.


module Keywords :
  sig
    type t
    val empty : t
    val add : string -> t -> t
    val mem : string -> t -> bool
  end

val filter : htmldoc -> Keywords.t -> htmldoc



The new_top function sets the top of the hierarchy to the first folder named as the given string.


val new_top : htmldoc -> string -> htmldoc
   



Previous Up Next