List of names of unicode code points that can be completed. The list is lazily initialized on first access.
(self)
| 3827 | |
| 3828 | @property |
| 3829 | def unicode_names(self) -> list[str]: |
| 3830 | """List of names of unicode code points that can be completed. |
| 3831 | |
| 3832 | The list is lazily initialized on first access. |
| 3833 | """ |
| 3834 | if self._unicode_names is None: |
| 3835 | names = [] |
| 3836 | for c in range(0,0x10FFFF + 1): |
| 3837 | try: |
| 3838 | names.append(unicodedata.name(chr(c))) |
| 3839 | except ValueError: |
| 3840 | pass |
| 3841 | self._unicode_names = _unicode_name_compute(_UNICODE_RANGES) |
| 3842 | |
| 3843 | return self._unicode_names |
| 3844 | |
| 3845 | |
| 3846 | def _unicode_name_compute(ranges: list[tuple[int, int]]) -> list[str]: |
nothing calls this directly
no test coverage detected