MCPcopy Create free account
hub / github.com/boostorg/parser / insert

Method insert

include/boost/parser/parser.hpp:5356–5366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5354 inside the parse context `context`. */
5355 template<typename Context>
5356 void insert(Context const & context, std::string_view str, T && x) const
5357 {
5358 auto [trie, has_case_folded] = detail::get_trie(context, ref());
5359 if (context.no_case_depth_) {
5360 trie.insert(
5361 detail::case_fold_view(str | detail::text::as_utf32),
5362 std::move(x));
5363 } else {
5364 trie.insert(str | detail::text::as_utf32, std::move(x));
5365 }
5366 }
5367
5368 /** Erases the entry whose UTF-8 match string is `str` from the copy
5369 of the symbol table inside the parse context `context`. */

Callers

nothing calls this directly

Calls 3

get_trieFunction · 0.85
case_fold_viewClass · 0.85
insertMethod · 0.45

Tested by

no test coverage detected