MCPcopy Create free account
hub / github.com/archlinux/archinstall / _count_wchars

Function _count_wchars

archinstall/lib/utils/encoding.py:23–25  ·  view source on GitHub ↗

Count the total number of wide characters contained in a string

(string: str)

Source from the content-addressed store, hash-verified

21
22
23def _count_wchars(string: str) -> int:
24 "Count the total number of wide characters contained in a string"
25 return sum(_is_wide_character(c) for c in string)
26
27
28def unicode_ljust(string: str, width: int, fillbyte: str = ' ') -> str:

Callers 2

unicode_ljustFunction · 0.85
unicode_rjustFunction · 0.85

Calls 1

_is_wide_characterFunction · 0.85

Tested by

no test coverage detected