| 1814 | /** Parse a key expression fully contained within a fragment with the name given by 'func' */ |
| 1815 | template<typename Key, typename Ctx> |
| 1816 | std::optional<Key> ParseKey(const std::string& func, std::span<const char>& in, const Ctx& ctx) |
| 1817 | { |
| 1818 | std::span<const char> expr = script::Expr(in); |
| 1819 | if (!script::Func(func, expr)) return {}; |
| 1820 | return ctx.FromString(expr); |
| 1821 | } |
| 1822 | |
| 1823 | /** Parse a hex string fully contained within a fragment with the name given by 'func' */ |
| 1824 | template<typename Ctx> |
no test coverage detected