@@ -644,9 +644,10 @@ replace s d = intercalate d . splitOn s
644-- functions from the @text-icu@ package:
644-- functions from the @text-icu@ package:
645-- <http://hackage.haskell.org/package/text-icu>
645-- <http://hackage.haskell.org/package/text-icu>
647−-- | /O(n)/ Convert a string to folded case. This function is mainly
647+-- | /O(n)/ Convert a string to folded case. Subject to fusion.
648−-- useful for performing caseless (also known as case insensitive)
649+-- This function is mainly useful for performing caseless (also known
649−-- string comparisons.
650+-- as case insensitive) string comparisons.
651-- A string @x@ is a caseless match for a string @y@ if and only if:
652-- A string @x@ is a caseless match for a string @y@ if and only if:
@@ -664,24 +665,28 @@ toCaseFold t = unstream (S.toCaseFold (stream t))
664{-# INLINE [0] toCaseFold #-}
665{-# INLINE [0] toCaseFold #-}
666-- | /O(n)/ Convert a string to lower case, using simple case
667-- | /O(n)/ Convert a string to lower case, using simple case
668+-- conversion. Subject to fusion.
667−-- conversion. The result string may be longer than the input string.
670+-- The result string may be longer than the input string. For
668−-- For instance, \"İ\" (Latin capital letter I with dot above,
671+-- instance, \"İ\" (Latin capital letter I with dot above,
669−-- U+0130) maps to the sequence \"i\" (Latin small letter i, U+0069) followed
672+-- U+0130) maps to the sequence \"i\" (Latin small letter i, U+0069)
670−-- by \" ̇\" (combining dot above, U+0307).
673+-- followed by \" ̇\" (combining dot above, U+0307).
671toLower :: Text -> Text
674toLower :: Text -> Text
672toLower t = unstream (S.toLower (stream t))
675toLower t = unstream (S.toLower (stream t))
673{-# INLINE toLower #-}
676{-# INLINE toLower #-}
675-- | /O(n)/ Convert a string to upper case, using simple case
678-- | /O(n)/ Convert a string to upper case, using simple case
679+-- conversion. Subject to fusion.
676−-- conversion. The result string may be longer than the input string.
681+-- The result string may be longer than the input string. For
677−-- For instance, the German \"ß\" (eszett, U+00DF) maps to the
682+-- instance, the German \"ß\" (eszett, U+00DF) maps to the
678-- two-letter sequence \"SS\".
683-- two-letter sequence \"SS\".
679toUpper :: Text -> Text
684toUpper :: Text -> Text
680toUpper t = unstream (S.toUpper (stream t))
685toUpper t = unstream (S.toUpper (stream t))
681{-# INLINE toUpper #-}
686{-# INLINE toUpper #-}
683-- | /O(n)/ Convert a string to title case, using simple case
688-- | /O(n)/ Convert a string to title case, using simple case
684−-- conversion.
689+-- conversion. Subject to fusion.
686-- Unlike the other case conversion functions, this function does not
691-- Unlike the other case conversion functions, this function does not
687-- convert every letter of its input. Instead, the first letter is
692-- convert every letter of its input. Instead, the first letter is