MCPcopy Create free account
hub / github.com/davidblewett/rure-python / property_set

Function property_set

regex/regex-syntax/src/unicode.rs:328–336  ·  view source on GitHub ↗
(
    name_map: &'static [(&'static str, &'static [(char, char)])],
    canonical: &'static str,
)

Source from the content-addressed store, hash-verified

326}
327
328fn property_set(
329 name_map: &'static [(&'static str, &'static [(char, char)])],
330 canonical: &'static str,
331) -> Option<&'static [(char, char)]> {
332 name_map
333 .binary_search_by_key(&canonical, |x| x.0)
334 .ok()
335 .map(|i| name_map[i].1)
336}
337
338/// An iterator over Unicode Age sets. Each item corresponds to a set of
339/// codepoints that were added in a particular revision of Unicode. The

Callers 1

classFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected