Spotlib.XstringSourceConstruction
make1 = String.make 1
Sysnonym make1
Deconstruction
Array
val scani_left :
(int -> 'a -> char -> [< `Continue of 'a | `Stop of 'a ]) ->
'a ->
?from:int ->
?to_:int ->
string ->
'aval foldi_left :
(int -> 'a -> char -> [< `Continue of 'a | `Stop of 'a ]) ->
'a ->
string ->
'areplace_chars c1 c2 s returns a copy of s with replacing all the char occurrences of c1 by c2.
Transform
chop_eols s returns the string s w/o the end-of-line chars. chop from Perl. chop_eols "hello\r\n" = "hello" chop_eols "hello\n" = "hello" chop_eols "hello\r" = "hello" chop_eols "hello" = "hello"
Sub
Same as String.sub but even if the string shorter for len the function succeeds and returns a shorter substring.
Same as prefix but returns the postfix
Same as postfix but returns the prefix
Haskelish string sub
same as take
Split
lines "hello\nworld\r\ngood\rday" = ["hello", "\n"; "world", "\r\n"; "good", "\r"; "day", ""]
split (function ' ' -> true | _ -> false) "hello world" = ["hello"; "world"]
Same as split but do the split only once
Split a string into "words" by white characters ' ', '\t', '\r' and '\n'
Optionalized
Random
human readable
Misc
Stdlib
Set