···129129 | Private (** Domains submitted by private parties *)
130130131131type t
132132-(** A handle to the parsed Public Suffix List *)
132132+(** A handle to the parsed Public Suffix List. *)
133133+134134+val pp : Format.formatter -> t -> unit
135135+(** [pp fmt t] pretty-prints a summary of the PSL handle. *)
133136134137(** {1 Errors} *)
135138···158161 (** The domain is itself a public suffix and has no registrable domain *)
159162160163val pp_error : Format.formatter -> error -> unit
161161-(** Pretty-print an error *)
164164+(** Pretty-print an error. *)
162165163166val error_to_string : error -> string
164164-(** Convert an error to a human-readable string *)
167167+(** Convert an error to a human-readable string. *)
165168166169(** {1 Creation} *)
167170···202205 If the implicit [*] rule was used (no explicit rule matched), the section is
203206 [ICANN].
204207205205- @return [Ok (suffix, section)] or [Error e] on failure *)
208208+ @return [Ok (suffix, section)] or [Error e] on failure. *)
206209207210val registrable_domain : t -> string -> (string, error) result
208211(** [registrable_domain t domain] returns the registrable domain portion.
···225228 Examples:
226229 - [registrable_domain t "www.example.com"] returns [Ok "example.com"]
227230 - [registrable_domain t "example.com"] returns [Ok "example.com"]
228228- - [registrable_domain t "com"] returns [Error Domain_is_public_suffix] *)
231231+ - [registrable_domain t "com"] returns [Error Domain_is_public_suffix]. *)
229232230233val registrable_domain_with_section :
231234 t -> string -> (string * section, error) result
232235(** [registrable_domain_with_section t domain] is like {!registrable_domain} but
233236 also returns the section where the matching rule was found.
234237235235- @return [Ok (domain, section)] or [Error e] on failure *)
238238+ @return [Ok (domain, section)] or [Error e] on failure. *)
236239237240(** {1 Predicates} *)
238241···255258 Examples:
256259 - [is_registrable_domain t "example.com"] returns [Ok true]
257260 - [is_registrable_domain t "www.example.com"] returns [Ok false]
258258- - [is_registrable_domain t "com"] returns [Ok false] *)
261261+ - [is_registrable_domain t "com"] returns [Ok false]. *)
259262260263(** {1 Statistics} *)
261264262265val rule_count : t -> int
263263-(** Total number of rules in the embedded PSL *)
266266+(** Total number of rules in the embedded PSL. *)
264267265268val icann_rule_count : t -> int
266266-(** Number of ICANN section rules *)
269269+(** Number of ICANN section rules. *)
267270268271val private_rule_count : t -> int
269269-(** Number of private section rules *)
272272+(** Number of private section rules. *)
270273271274(** {1 Version Information} *)
272275···274277(** Version string from the embedded PSL data.
275278276279 Returns the version identifier from the Public Suffix List source file,
277277- typically in the format ["YYYY-MM-DD_HH-MM-SS_UTC"]. *)
280280+ typically in the format "YYYY-MM-DD_HH-MM-SS_UTC". *)
278281279282val commit : t -> string
280283(** Commit hash from the embedded PSL data.
+1-1
lib/publicsuffix_data.mli
···125125 The root node represents the starting point for all PSL lookups. Domain
126126 labels should be traversed in reverse order (TLD first) from this root.
127127128128- @return The root trie node containing all PSL rules *)
128128+ @return The root trie node containing all PSL rules. *)
129129130130(** {1 Statistics}
131131