Function lookup_path_or_modify
Summary
#include <src/c4/yml/tree.hpp>
(1) size_t lookup_path_or_modify(csubstr default_value, csubstr path, size_t start=NONE)
(2) size_t lookup_path_or_modify(Tree const *src, size_t src_node, csubstr path, size_t start=NONE)
Function overload
Synopsis
#include <src/c4/yml/tree.hpp>
size_t lookup_path_or_modify(csubstr default_value, csubstr path, size_t start=NONE)
Description
defaulted lookup: lookup path
; if the lookup fails, recursively modify the tree so that the corresponding lookup_path() would return the default value.
- See
- lookup_path()
Source
Line 1058 in src/c4/yml/tree.hpp.
Synopsis
#include <src/c4/yml/tree.hpp>
size_t lookup_path_or_modify(Tree const *src, size_t src_node, csubstr path, size_t start=NONE)
Description
defaulted lookup: lookup path
; if the lookup fails, recursively modify the tree so that the corresponding lookup_path() would return the branch src_node
(from the tree src
).
- See
- lookup_path()
Source
Line 1064 in src/c4/yml/tree.hpp.