Skip to main content

collect_meaning_keys

Function collect_meaning_keys 

Source
pub fn collect_meaning_keys(content: &str) -> FxHashSet<Box<str>>
Expand description

Collect the control-sequence keys of every M (meaning) record in a dump, without applying anything to State.

This is a pure index scan over the same text load_from_str_labeled replays: one splitn(3, '\t') per line, keeping field 1 of the M rows and dropping everything else. No token bodies are parsed, no arena interning happens, and the State is not touched — so it is safe to call in a session that has deliberately not loaded the dump (see latexml_engine::latex_kernel, which uses it to answer “does the LaTeX kernel define this CS?” before committing to a pool load).

Keys are url-decoded exactly as parse_and_load decodes them, so a name found here compares equal to the CS name the loader would install.