Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/archlinux/archinstall
/ _is_wide_character
Function
_is_wide_character
archinstall/lib/utils/encoding.py:19–20 ·
view source on GitHub ↗
(char: str)
Source
from the content-addressed store, hash-verified
17
18
@lru_cache(maxsize=128)
19
def
_is_wide_character(char: str) -> bool:
20
return
unicodedata.east_asian_width(char) in
'FW'
21
22
23
def
_count_wchars(string: str) -> int:
Callers
1
_count_wchars
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected