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.

  1. charWidth :: Char -> Int

    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.

  2. elideLeft :: Int -> String -> String

    hledger-lib Hledger.Utils.String

    No documentation available.

  3. elideRight :: Int -> String -> String

    hledger-lib Hledger.Utils.String

    No documentation available.

  4. strWidth :: String -> Int

    hledger-lib Hledger.Utils.String

    Alias for realLength.

  5. strWidthAnsi :: String -> Int

    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.

  6. takeWidth :: Int -> String -> String

    hledger-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 "りんご" = "り".

  7. data WideBuilder

    hledger-lib Hledger.Utils.Text

    Helper for constructing Builders while keeping track of text width.

  8. WideBuilder :: Builder -> Int -> WideBuilder

    hledger-lib Hledger.Utils.Text

    No documentation available.

  9. textElideRight :: Int -> Text -> Text

    hledger-lib Hledger.Utils.Text

    No documentation available.

  10. textTakeWidth :: Int -> Text -> Text

    hledger-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 "りんご" = "り".

Page 918 of many | Previous | Next