Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PierreGode/Ragnar
/ _text_width
Function
_text_width
pager_lib/tqdm/utils.py:374–375 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
372
373
374
def
_text_width(s):
375
return
sum(2
if
east_asian_width(ch) in
'FW'
else
1
for
ch in str(s))
376
377
378
def
disp_len(data):
Callers
2
_run_max7219
Method · 0.85
disp_len
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected