:: String -> Int -package:hledger-lib -package:speculate -package:monads-tf -package:ghc-lib-parser -is:exact package:vty -is:exact -is:exact is:exact

Returns the display width of a string. Assumes all characters with unknown widths are 0 width.