:: String -> Int -package:hledger-lib -package:speculate -package:dbus is:exact -package:ghc-lib-parser -package:hxt package:vty

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