Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
hledger-lib Hledger.Utils.String Returns width of a character in a monospace font: 0 for a combining character, 1 for a regular character, 2 for an East Asian wide character. Ambiguous characters are treated as width 1.
elideLeft :: Int -> String -> Stringhledger-lib Hledger.Utils.String No documentation available.
elideRight :: Int -> String -> Stringhledger-lib Hledger.Utils.String No documentation available.
-
hledger-lib Hledger.Utils.String Alias for realLength.
-
hledger-lib Hledger.Utils.String Like strWidth, but also strips ANSI escape sequences before calculating the width. This is no longer used in code, as widths are calculated before adding ANSI escape sequences, but is being kept around for now.
takeWidth :: Int -> String -> Stringhledger-lib Hledger.Utils.String Double-width-character-aware string truncation. Take as many characters as possible from a string without exceeding the specified width. Eg takeWidth 3 "りんご" = "り".
-
hledger-lib Hledger.Utils.Text Helper for constructing Builders while keeping track of text width.
WideBuilder :: Builder -> Int -> WideBuilderhledger-lib Hledger.Utils.Text No documentation available.
textElideRight :: Int -> Text -> Texthledger-lib Hledger.Utils.Text No documentation available.
textTakeWidth :: Int -> Text -> Texthledger-lib Hledger.Utils.Text Double-width-character-aware string truncation. Take as many characters as possible from a string without exceeding the specified width. Eg textTakeWidth 3 "りんご" = "り".