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

Method erase

include/boost/parser/parser.hpp:5371–5380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5369 of the symbol table inside the parse context `context`. */
5370 template<typename Context>
5371 void erase(Context const & context, std::string_view str) const
5372 {
5373 auto [trie, has_case_folded] = detail::get_trie(context, ref());
5374 if (context.no_case_depth_) {
5375 trie.erase(
5376 detail::case_fold_view(str | detail::text::as_utf32));
5377 } else {
5378 trie.erase(str | detail::text::as_utf32);
5379 }
5380 }
5381
5382 /** Erases the entry whose UTF-8 match string is `str` from the copy
5383 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
eraseMethod · 0.45

Tested by

no test coverage detected