search for: replace_list

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

Did you mean: replace_first
2019 Feb 25
0
[PATCH 2/3] v2v: add Var_expander
...ar; + let start_, end_ = PCRE.subi 0 in + match fn var with + | None -> + offset := end_ + | Some text -> + res := (String.sub !res 0 start_) ^ text ^ (String.sub !res end_ (String.length !res - end_)); + offset := start_ + String.length text + done; + !res + +let replace_list str lst = + let fn var = + try Some (List.assoc var lst) + with Not_found -> None + in + replace_fn str fn diff --git a/v2v/var_expander.mli b/v2v/var_expander.mli new file mode 100644 index 000000000..80aa33c2c --- /dev/null +++ b/v2v/var_expander.mli @@ -0,0 +1,82 @@ +(* virt-v2v + *...
2019 Mar 29
5
[PATCH v2 0/3] v2v: add -o json output mode
This series adds a new output mode for virt-v2v, called -o json. It produces local files, just like -o local, although the metadata produced is a JSON file with data that v2v collected in the conversion process. This can be useful for converting to unsupported destinations, still based on QEMU/KVM. In addition to a simple different metadata, it offers a way to relocate the disks, with
2019 Feb 25
7
[PATCH 0/3] RFC: v2v: add -o json output mode
This series adds a new output mode for virt-v2v, called -o json. It produces local files, just like -o local, although the metadata produced is a JSON file with data that v2v collected in the conversion process. This can be useful for converting to unsupported destinations, still based on QEMU/KVM. In addition to a simple different metadata, it offers a way to relocate the disks, with