This is an internal function for pattern2id
that select types using
keys in index when available.
search_glob(pattern, types_search, index)search_glob_multi(patterns, types_search, index)
search_regex(pattern, types_search, case_insensitive)
search_regex_multi(patterns, types_search, case_insensitive)
search_fixed(pattern, types_search, index)
search_fixed_multi(patterns, types_search, index)
a "glob", "fixed" or "regex" pattern
lowercased types when case_insensitive=TRUE
, but
not used in glob and fixed matching as types are in the index.
index object created by index_types
a list of "glob", "fixed" or "regex" patterns
ignore case when matching, if TRUE
, but not
used in glob and fixed matching as types are lowercased in the index.