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

Method find

include/boost/parser/parser.hpp:5340–5350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5338 `context`. */
5339 template<typename Context>
5340 parser::detail::text::optional_ref<T>
5341 find(Context const & context, std::string_view str) const
5342 {
5343 auto [trie, has_case_folded] = detail::get_trie(context, ref());
5344 if (context.no_case_depth_) {
5345 return trie[detail::case_fold_view(
5346 str | detail::text::as_utf32)];
5347 } else {
5348 return trie[str | detail::text::as_utf32];
5349 }
5350 }
5351
5352 /** Inserts an entry consisting of a UTF-8 string `str` to match, and
5353 an associtated attribute `x`, to the copy of the symbol table

Callers

nothing calls this directly

Calls 2

get_trieFunction · 0.85
case_fold_viewClass · 0.85

Tested by

no test coverage detected