@@ -915,8 +915,8 @@ tails t | null t = [empty]
915-- > intercalate s . split s == id
915-- > intercalate s . split s == id
916-- > split (singleton c) == splitBy (==c)
916-- > split (singleton c) == splitBy (==c)
918−-- In (unlikely) bad cases, this function's time complexity
918+-- In (unlikely) bad cases, this function's time complexity degrades
919−-- degenerates towards /O(n*m)/.
919+-- towards /O(n*m)/.
920split :: Text -> Text -> [Text]
920split :: Text -> Text -> [Text]
921split pat@(Text _ _ l) src@(Text arr off len)
921split pat@(Text _ _ l) src@(Text arr off len)
922 | l <= 0 = emptyError "split"
922 | l <= 0 = emptyError "split"
@@ -1017,8 +1017,8 @@ filter p t = unstream (S.filter p (stream t))
1017-- want to break on every instance of a substring), use 'find'
1017-- want to break on every instance of a substring), use 'find'
1018-- instead, as it has lower startup overhead.
1018-- instead, as it has lower startup overhead.
1020−-- In (unlikely) bad cases, this function's time complexity
1020+-- In (unlikely) bad cases, this function's time complexity degrades
1021−-- degenerates towards /O(n*m)/.
1021+-- towards /O(n*m)/.
1022break :: Text -> Text -> (Text, Text)
1022break :: Text -> Text -> (Text, Text)
1023break pat src@(Text arr off len)
1023break pat src@(Text arr off len)
1024 | null pat = emptyError "break"
1024 | null pat = emptyError "break"
@@ -1091,8 +1091,8 @@ findIndex p t = S.findIndex p (stream t)
1091-- query string appears in the given 'Text'. An empty query string is
1091-- query string appears in the given 'Text'. An empty query string is
1092-- invalid, and will cause an error to be raised.
1092-- invalid, and will cause an error to be raised.
1094−-- In (unlikely) bad cases, this function's time complexity
1094+-- In (unlikely) bad cases, this function's time complexity degrades
1095−-- degenerates towards /O(n*m)/.
1095+-- towards /O(n*m)/.
1096count :: Text -> Text -> Int
1096count :: Text -> Text -> Int
1097count pat src
1097count pat src
1098 | null pat = emptyError "count"
1098 | null pat = emptyError "count"
@@ -1217,8 +1217,8 @@ isSuffixOf a@(Text _aarr _aoff alen) b@(Text barr boff blen) =
1217-- 'True' iff the first is contained, wholly and intact, anywhere
1217-- 'True' iff the first is contained, wholly and intact, anywhere
1218-- within the second.
1218-- within the second.
1220−-- In (unlikely) bad cases, this function's time complexity
1220+-- In (unlikely) bad cases, this function's time complexity degrades
1221−-- degenerates towards /O(n*m)/.
1221+-- towards /O(n*m)/.
1222isInfixOf :: Text -> Text -> Bool
1222isInfixOf :: Text -> Text -> Bool
1223isInfixOf pat src = null pat || (not . L.null $ indices pat src)
1223isInfixOf pat src = null pat || (not . L.null $ indices pat src)
1224{-# INLINE isInfixOf #-}
1224{-# INLINE isInfixOf #-}