Classes | |
| struct | Snippet |
| One ready-to-paste snippet served by notex get. More... | |
Functions | |
| const std::vector< Snippet > & | all_snippets () |
| std::vector< std::string_view > | snippet_names () |
| std::vector< Snippet > | find_snippets (std::string_view name) |
Looks up every snippet registered under name, whether as its canonical name or as an alias. | |
NoTeX Copyright (c) 2026 Marco Tallone Licensed under the MIT License. See LICENCE for details.
Implements reference: the encoded snippet table served by notex get.
| const std::vector< Snippet > & notex::reference::all_snippets | ( | ) |
Definition at line 108 of file reference.cpp.
| std::vector< Snippet > notex::reference::find_snippets | ( | std::string_view | name | ) |
Looks up every snippet registered under name, whether as its canonical name or as an alias.
A name can resolve to more than one snippet: notex get box returns both cbox and ebox, since a user asking for "a box" may not remember which specific name they want.
| name | Name to look up. |
name matches nothing. Definition at line 132 of file reference.cpp.
| std::vector< std::string_view > notex::reference::snippet_names | ( | ) |
Definition at line 119 of file reference.cpp.