MCPcopy 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
374def _text_width(s):
375 return sum(2 if east_asian_width(ch) in 'FW' else 1 for ch in str(s))
376
377
378def disp_len(data):

Callers 2

_run_max7219Method · 0.85
disp_lenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected