Safe Haskell | None |
---|---|
Language | Haskell2010 |
Abstract MOO string type
- data MOOString
- fromText :: Text -> MOOString
- fromBinary :: ByteString -> MOOString
- fromString :: IsString a => String -> a
- toText :: MOOString -> Text
- toCaseFold :: MOOString -> Text
- toBinary :: MOOString -> Maybe ByteString
- toString :: MOOString -> String
- toBuilder :: MOOString -> Builder
- toRegexp :: Bool -> MOOString -> CompiledRegexp
- singleton :: Char -> MOOString
- empty :: MOOString
- append :: MOOString -> MOOString -> MOOString
- tail :: MOOString -> MOOString
- null :: MOOString -> Bool
- length :: MOOString -> Int
- compareLength :: MOOString -> Int -> Ordering
- storageBytes :: MOOString -> Int
- equal :: MOOString -> MOOString -> Bool
- intercalate :: MOOString -> [MOOString] -> MOOString
- foldr :: (Char -> a -> a) -> a -> MOOString -> a
- concat :: [MOOString] -> MOOString
- concatMap :: (Char -> MOOString) -> MOOString -> MOOString
- take :: Int -> MOOString -> MOOString
- drop :: Int -> MOOString -> MOOString
- splitAt :: Int -> MOOString -> (MOOString, MOOString)
- breakOn :: MOOString -> MOOString -> (MOOString, MOOString)
- breakOnEnd :: MOOString -> MOOString -> (MOOString, MOOString)
- break :: (Char -> Bool) -> MOOString -> (MOOString, MOOString)
- splitOn :: MOOString -> MOOString -> [MOOString]
- words :: MOOString -> [MOOString]
- unwords :: [MOOString] -> MOOString
- validChar :: Char -> Bool
- isPrefixOf :: MOOString -> MOOString -> Bool
- index :: MOOString -> Int -> Char
Documentation
Creation and elimination
fromBinary :: ByteString -> MOOString Source
fromString :: IsString a => String -> a
toCaseFold :: MOOString -> Text Source
toBinary :: MOOString -> Maybe ByteString Source
Basic interface
compareLength :: MOOString -> Int -> Ordering Source
storageBytes :: MOOString -> Int Source
equal :: MOOString -> MOOString -> Bool Source
Test two strings for indistinguishable (case-sensitive) equality.
Transformations
intercalate :: MOOString -> [MOOString] -> MOOString Source
Folds
Special folds
Substrings
Breaking strings
Breaking into many substrings
Breaking into lines and words
Predicates
isPrefixOf :: MOOString -> MOOString -> Bool Source