search for: c44a6dc76

Displaying 3 results from an estimated 3 matches for "c44a6dc76".

2017 Oct 16
3
[PATCH v2 0/2] daemon: add and use split_key_value_strings helper
Changes from v1 to v2: - split the "simple unquoting" as helper - pass the unquoting function to split_key_value_strings - use right unquoting function when applying split_key_value_strings Pino Toscano (2): daemon: add split_key_value_strings helper daemon: use split_key_value_strings daemon/inspect_fs_unix.ml | 93 +++++++++++++++++++---------------------------- daemon/md.ml
2017 Oct 16
0
[PATCH v2 1/2] daemon: add split_key_value_strings helper
...es = List.filter (fun s -> s.[0] <> '#') lines in + let lines = List.map (String.split "=") lines in + match unquote with + | None -> lines + | Some f -> List.map (fun (k, v) -> (k, f v)) lines diff --git a/daemon/utils.mli b/daemon/utils.mli index f312bde41..c44a6dc76 100644 --- a/daemon/utils.mli +++ b/daemon/utils.mli @@ -97,5 +97,16 @@ val unix_canonical_path : string -> string The path is modified in place because the result is always the same length or shorter than the argument passed. *) +val simple_unquote : string -> string +(** Unquote...
2017 Oct 16
2
Re: [PATCH v2 1/2] daemon: add split_key_value_strings helper
...s.[0] <> '#') lines in > + let lines = List.map (String.split "=") lines in > + match unquote with > + | None -> lines > + | Some f -> List.map (fun (k, v) -> (k, f v)) lines > diff --git a/daemon/utils.mli b/daemon/utils.mli > index f312bde41..c44a6dc76 100644 > --- a/daemon/utils.mli > +++ b/daemon/utils.mli > @@ -97,5 +97,16 @@ val unix_canonical_path : string -> string > The path is modified in place because the result is always > the same length or shorter than the argument passed. *) > > +val simple_unquote...