Safe Haskell | Safe-Inferred |
---|
String manipulation utilities
- 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
chomp :: String -> String -> StringSource
Remove any trailing strings matching irs (input record separator) from input string. Like perl's chomp(1).
capitalize :: 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.