String -> [String]
lines breaks a string up into a list of strings at newline characters. The resulting strings do not contain newlines.
words breaks a string up into a list of words, which were delimited by white space.
Take a string, split it on the searchPathSeparator character.
Follows the recommendations in http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
> Posix: splitSearchPath "File1:File2:File3" == ["File1","File2","File3"]
> Posix: splitSearchPath "File1::File2:File3" == ["File1",".","File2","File3"]
> Windows: splitSearchPath "File1;File2;File3" == ["File1","File2","File3"]
> Windows: splitSearchPath "File1;;File2;File3" == ["File1","File2","File3"]
Just as splitPath, but don't add the trailing slashes to each element.
> splitDirectories "test/file" == ["test","file"]
> splitDirectories "/test/file" == ["/","test","file"]
> Valid x => joinPath (splitDirectories x) `equalFilePath` x
> splitDirectories "" == []
Split a path by the directory separator.
> concat (splitPath x) == x
> splitPath "test//item/" == ["test//","item/"]
> splitPath "test/item/file" == ["test/","item/","file"]
> splitPath "" == []
> Windows: splitPath "c:\\test\\path" == ["c:\\","test\\","path"]
> Posix: splitPath "/file/test" == ["/","file/","test"]
Splits a string based on a regular expression. The regular expression should identify one delimiter.
This does not advance and produces an infinite list of [] if the regex matches an empty string. This misfeature is here to match the behavior of the the original Text.Regex API.
Get all the values of an input variable, for example from a form. This can be used to get all the values from form controls which allow multiple values to be selected. Example:
> vals <- getMultiInput "my_checkboxes"
The inits function returns all initial segments of the argument, shortest first. For example,
> inits "abc" == ["","a","ab","abc"]
The permutations function returns the list of all permutations of the argument.
> permutations "abc" == ["abc","bac","cba","bca","cab","acb"]
The subsequences function returns the list of all subsequences of the argument.
> subsequences "abc" == ["","a","b","ab","c","ac","bc","abc"]
The tails function returns all final segments of the argument, longest first. For example,
> tails "abc" == ["abc", "bc", "c",""]
Gets the module of a type constructor: take *.*.*... before name
Gets the unqualified type constructor: drop *.*.*... before name
Case normalization; cf. RFC3986 section 6.2.2.1 NOTE: authority case normalization is not performed
Encoding normalization; cf. RFC3986 section 6.2.2.2
Path segment normalization; cf. RFC3986 section 6.2.2.4
Processing Strings into Html friendly things.
Simplifies the input string by interpreting \r and \b characters specially so that the result string has the same final (or terminal, pun intended) appearance as would the input string when written to a terminal that overwrites character positions following carriage returns and backspaces.
Show more results