length -package:vector -package:protolude -package:haskell-gi-base -package:hedgehog -package:pipes package:text
O(n) Returns the number of characters in a
Text.
O(n) Returns the number of characters in a text.
O(n) Returns the number of characters in a
Text.
O(1) Return the length of a
Text in units of
Word8. This is useful for sizing a target array appropriately
before using
unsafeCopyToPtr.
O(n) Returns the number of characters in a string.
O(min(n,c)) Compare the count of characters in a
Text to
a number.
compareLength t c = compare (length t) c
This function gives the same answer as comparing against the result of
length, but can short circuit if the count of characters is
greater than the number, and hence be more efficient.
O(n) Compares the count of characters in a string to a number.
This function gives the same answer as comparing against the result of
lengthI, but can short circuit if the count of characters is
greater than the number or if the stream can't possibly be as long as
the number supplied, and hence be more efficient.
O(min(n,c)) Compare the count of characters in a
Text to
a number.
compareLength t c = compare (length t) c
This function gives the same answer as comparing against the result of
length, but can short circuit if the count of characters is
greater than the number, and hence be more efficient.