unicode_width

Module tables

source

Structs§

Constants§

Statics§

Functions§

  • Returns true if c is an Emoji_Modifier_Base.
  • Whether this character is a default-ignorable combining mark or ZWJ. These characters won’t interrupt non-Arabic ligatures.
  • Whether this character is transparent wrt the effect of U+0338 COMBINING LONG SOLIDUS OVERLAY on its base character.
  • Whether this character is a zero-width character with Joining_Type=Transparent. Used by the Alef-Lamed ligatures. See also is_ligature_transparent, a near-subset of this (only ZWJ is excepted) which is transparent for non-Arabic ligatures.
  • lookup_width πŸ”’
    Returns the UAX #11 based width of c by consulting a multi-level lookup table.
  • lookup_width_cjk πŸ”’
    Returns the UAX #11 based width of c by consulting a multi-level lookup table.
  • Returns the UAX #11 based width of c, or None if c is a control character. Ambiguous width characters are treated as narrow.
  • Returns the UAX #11 based width of c, or None if c is a control character. Ambiguous width characters are treated as wide.
  • Whether this character forms an [emoji presentation sequence] (https://www.unicode.org/reports/tr51/#def_emoji_presentation_sequence) when followed by '\u{FEOF}'. Emoji presentation sequences are considered to have width 2.
  • Returns true if c has default emoji presentation, but forms a [text presentation sequence] (https://www.unicode.org/reports/tr51/#def_text_presentation_sequence) when followed by '\u{FEOE}', and is not ideographic. Such sequences are considered to have width 1.
  • width_in_str πŸ”’
    Returns the UAX #11 based width of c. Ambiguous width characters are treated as narrow.
  • width_in_str_cjk πŸ”’
    Returns the UAX #11 based width of c. Ambiguous width characters are treated as wide.