Module unicode_width::tables::charwidth
source · Statics
- TABLES_0 🔒Autogenerated. 1 sub-table(s). Consult
lookup_width
for layout info. - TABLES_1 🔒Autogenerated. 19 sub-table(s). Consult
lookup_width
for layout info. - TABLES_2 🔒Autogenerated. 243 sub-table(s). Consult
lookup_width
for layout info.
Functions
- Returns the UAX #11 based width of
c
by consulting a multi-level lookup table. Ifis_cjk == true
, ambiguous width characters are treated as double width; otherwise, they’re treated as single width. - Returns the UAX #11 based width of
c
, orNone
ifc
is a control character other than'\x00'
. Ifis_cjk == true
, ambiguous width characters are treated as double width; otherwise, they’re treated as single width.