Copyright | (c) Roman Leshchinskiy 2008 (c) Bryan O'Sullivan 2009 |
---|---|
License | BSD-style |
Maintainer | [email protected] |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!
Size hints.
A size in UTF-16 code units.
exactSize :: Int -> Size Source
betweenSize :: Int -> Int -> Size Source
unionSize :: Size -> Size -> Size Source
charSize :: Char -> Size Source
The Size
of the given code point.
codePointsSize :: Int -> Size Source
The Size
of n
code points.
exactly :: Size -> Maybe Int Source
smaller :: Size -> Size -> Size Source
Minimum of two size hints.
larger :: Size -> Size -> Size Source
Maximum of two size hints.
upperBound :: Int -> Size -> Int Source
Compute the maximum size from a size hint, if possible.
lowerBound :: Int -> Size -> Int Source
Compute the maximum size from a size hint, if possible.
compareSize :: Size -> Size -> Maybe Ordering Source
Determine the ordering relationship between two Size
s, or Nothing
in the indeterminate case.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.8.3/docs/html/libraries/text-1.2.4.0/Data-Text-Internal-Fusion-Size.html