View Source BackBreeze.Ucwidth (BackBreeze v0.2.1)

Module for dealing with variable width glyphs.

Summary

Functions

Return the width of a character when considering glyphs that are more than 1 character wide.

Functions

Return the width of a character when considering glyphs that are more than 1 character wide.

iex> BackBreeze.Ucwidth.width("H")
1

iex> BackBreeze.Ucwidth.width("🍏")
2