Struct lookup_result
Synopsis
#include <src/c4/yml/tree.hpp>
struct lookup_result
Description
No description yet.
Summary
operator bool | ||
lookup_result overload | ||
resolved | get the part ot the input path that was resolved | |
unresolved | get the part ot the input path that was unresolved |
Source
Lines 1033-1049 in src/c4/yml/tree.hpp.
struct lookup_result
{
size_t target;
size_t closest;
size_t path_pos;
csubstr path;
inline operator bool() const { return target != NONE; }
lookup_result() : target(NONE), closest(NONE), path_pos(0), path() {}
lookup_result(csubstr path_, size_t start) : target(NONE), closest(start), path_pos(0), path(path_) {}
/** get the part ot the input path that was resolved */
csubstr resolved() const;
/** get the part ot the input path that was unresolved */
csubstr unresolved() const;
};