Copyright | (c) Dong Han 2017-2018 |
---|---|
License | BSD |
Maintainer | winterland1989@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- elem :: Char -> Text -> Bool
- notElem :: Char -> Text -> Bool
- findIndices :: (Char -> Bool) -> Text -> [Int]
- findBytesIndices :: (Char -> Bool) -> Text -> [Int]
- find :: (Char -> Bool) -> Text -> (Int, Maybe Char)
- findR :: (Char -> Bool) -> Text -> (Int, Maybe Char)
- findIndex :: (Char -> Bool) -> Text -> Int
- findIndexR :: (Char -> Bool) -> Text -> Int
- findBytesIndex :: (Char -> Bool) -> Text -> Int
- findBytesIndexR :: (Char -> Bool) -> Text -> Int
- filter :: (Char -> Bool) -> Text -> Text
- partition :: (Char -> Bool) -> Text -> (Text, Text)
element-wise search
Searching by equality
findBytesIndices :: (Char -> Bool) -> Text -> [Int] Source #
find all char's byte index matching the predicate.
O(n) find the first char matching the predicate in a text from left to right, if there isn't one, return the text length.
O(n) find the first char matching the predicate in a text from right to left.
findBytesIndexR :: (Char -> Bool) -> Text -> Int Source #
O(n) find the char's byte slice index in reverse order(pointing to the right char's first byte).