yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.String
Description
String manipulation utilities
Synopsis
isBlank :: String -> Bool
chomp :: String -> String -> String
capitalize :: String -> String
capitalizeFirst :: String -> String
dropSpace :: String -> String
fillText :: Int -> String -> [String]
onLines :: ([String] -> [String]) -> String -> String
mapLines :: (String -> String) -> String -> String
lines' :: String -> [String]
unlines' :: [String] -> String
padLeft :: Int -> String -> String
padRight :: Int -> String -> String
Documentation
isBlank :: String -> BoolSource
chomp :: String -> String -> StringSource
Remove any trailing strings matching irs (input record separator) from input string. Like perl's chomp(1).
capitalize :: String -> StringSource
capitalizeFirst :: String -> StringSource
dropSpace :: String -> StringSource
Trim spaces at beginning and end
fillText :: Int -> String -> [String]Source
onLines :: ([String] -> [String]) -> String -> StringSource
mapLines :: (String -> String) -> String -> StringSource
A helper function for creating functions suitable for modifySelectionB and modifyRegionB. To be used when the desired function should map across the lines of a region.
lines' :: String -> [String]Source
Split a String in lines. Unlike lines, this does not remove any empty line at the end.
unlines' :: [String] -> StringSource
Inverse of lines'. In contrast to unlines, this does not add an empty line at the end.
padLeft :: Int -> String -> StringSource
padRight :: Int -> String -> StringSource
Produced by Haddock version 2.6.1