Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-cxx latest

parse_lookup

Parse one field[__lookup]=value term against a caller-supplied field table.

Source and package
Qualified name
libtmux::parse_lookup
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/legacy_lookup.hpp
template <typename Entity> [[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] expected<FilterExpr<Entity>, LookupParseError> parse_lookup( std::string_view term, std::span<const StringFieldHandle<Entity>> fields);

Description#

The value is taken verbatim after the first =, so a value containing = or __ survives unchanged; only the key is split.

Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference