package scfg

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

Module providing functions to search inside a config.

val get_dirs : string -> Types.directive list -> Types.directive list

Returns a list of directives with the provided name from a list of directives.

val get_dir : string -> Types.directive list -> Types.directive option

Returns the first directive with the provided name from a list of directive.

val get_params : int -> Types.directive -> (string list, string) Stdlib.result

Extract a given number of parameters from a directive.

val get_param : int -> Types.directive -> (string, string) Stdlib.result

Extract a parameter at a given index from a directive.

val get_param_bool : int -> Types.directive -> (bool, string) Stdlib.result

Extract a bool parameter at a given index from a directive.

val get_param_int : int -> Types.directive -> (int, string) Stdlib.result

Extract an int parameter at a given index from a directive.

val get_param_pos_int : int -> Types.directive -> (int, string) Stdlib.result

Extract a positive int parameter at a given index from a directive.

OCaml

Innovation. Community. Security.