MCPcopy Index your code
hub / github.com/ipython/ipython / back_unicode_name_matcher

Function back_unicode_name_matcher

IPython/core/completer.py:1722–1730  ·  view source on GitHub ↗

Match Unicode characters back to Unicode name Same as :any:`back_unicode_name_matches`, but adopted to new Matcher API.

(context: CompletionContext)

Source from the content-addressed store, hash-verified

1720
1721@context_matcher()
1722def back_unicode_name_matcher(context: CompletionContext):
1723 """Match Unicode characters back to Unicode name
1724
1725 Same as :any:`back_unicode_name_matches`, but adopted to new Matcher API.
1726 """
1727 fragment, matches = back_unicode_name_matches(context.text_until_cursor)
1728 return _convert_matcher_v1_result_to_v2(
1729 matches, type="unicode", fragment=fragment, suppress_if_matches=True
1730 )
1731
1732
1733def back_unicode_name_matches(text: str) -> tuple[str, Sequence[str]]:

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…