length +text

length :: Text -> Int
text Data.Text
O(n) Returns the number of characters in a Text. Subject to fusion.
length :: Text -> Int64
text Data.Text.Lazy
O(n) Returns the number of characters in a Text. Subject to fusion.
lengthWord16 :: Text -> Int
text Data.Text.Unsafe, text Data.Text.Foreign
O(1) Return the length of a Text in units of Word16. This is useful for sizing a target array appropriately before using unsafeCopyToPtr.
compareLength :: Text -> Int -> Ordering
text Data.Text
O(n) Compare the count of characters in a Text to a number. Subject to fusion. 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.
compareLength :: Text -> Int64 -> Ordering
text Data.Text.Lazy
O(n) Compare the count of characters in a Text to a number. Subject to fusion. 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.