| 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 |
nothing calls this directly
no test coverage detected