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

split_row

Split one tmux output line into its field values.

Source and package
Qualified name
libtmux::split_row
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/snapshot.hpp
[[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]] bool split_row(std::string_view line, std::size_t fields, std::vector<std::string_view>& values);

Description#

The trailing separator emitted by format_request() produces one empty tail element, which is dropped; a short or long row is reported rather than padded so a format-name typo cannot masquerade as an empty field.

Esc

Type to search.

Reference previewOpen reference