Module unicode_width::tables::charwidth
source · Statics
- TABLES_0 🔒Autogenerated. 1 sub-table(s). Consult
lookup_widthfor layout info. - TABLES_1 🔒Autogenerated. 19 sub-table(s). Consult
lookup_widthfor layout info. - TABLES_2 🔒Autogenerated. 243 sub-table(s). Consult
lookup_widthfor layout info.
Functions
- Returns the UAX #11 based width of
cby 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, orNoneifcis a control character other than'\x00'. Ifis_cjk == true, ambiguous width characters are treated as double width; otherwise, they’re treated as single width.